Changeset 44333


Ignore:
Timestamp:
11/11/19 23:20:39 (4 years ago)
Author:
obi
Message:

reset httpfunc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r44325 r44333  
    11241124{
    11251125        char* buf = NULL, *param1 = NULL, *tmpbuf = NULL;
    1126 printf("#############################################\n");
    1127 
    1128 printf("[webvideo] param: %s\n",param);
    1129 printf("[webvideo] fmt: %d\n",fmt);
    11301126
    11311127        if(param == NULL) return NULL;
    11321128
    1133 //      if(ostrcmp("play=", param) == 0)
    1134         if(ostrstr(param, "play=") == param)
    1135         {
    1136                 printf("[webvideo] free: %s\n",status.webplayfile);
    1137 
    1138                 free(status.webplayfile); status.webplayfile = NULL;
    1139                 printf("[webvideo] free: %s\n",status.webplayfile);
    1140         }
    1141 
    11421129        if(ostrcmp("status", param) == 0) // status is only available for queryraw
    11431130        {
    1144 printf("[webvideo] 111111111\n");
    1145 
    11461131                char buf[30];
    11471132                int active = (status.webplayfile != NULL ? 1 : 0);
     
    11631148                return ostrcat(buf, NULL, 0, 0);
    11641149        }
    1165 printf("[webvideo] 222222222\n");
    11661150
    11671151        //create param1
     
    11721156        if(param1 == NULL) return NULL;
    11731157
    1174 printf("[webvideo] 3333333333\n");
    1175 
    11761158        htmldecode(param1, param1);
    11771159        if(param1 != NULL)
    11781160        {
    1179 printf("[webvideo] 4444444444\n");
    1180 
    11811161                if(status.play == 0 && status.webplayfile == NULL)
    11821162                {
    1183 printf("[webvideo] 5555555555\n");
    1184 
    11851163                        if(ostrstr(param1, "url=") == param1)
    1186 {
    1187 printf("[webvideo] 666666666666\n");
    1188 
    11891164                                status.webplayfile = ostrcat(param1 + 4, NULL, 0, 0);
    1190 }
    11911165                        else if(ostrstr(param1, "hosterurl=") == param1)
    11921166                        {
    1193 printf("[webvideo] 7777777777777\n");
    1194 
    11951167                                status.webplayfile = ostrcat(param1 + 10, NULL, 0, 0);
    11961168
     
    12121184                        }
    12131185                        else
    1214 {
    1215 printf("[webvideo] 88888888\n");
    1216 
    12171186                                status.webplayfile = ostrcat(param1, NULL, 0, 0);
    1218 }
    1219                 }
    1220 printf("[webvideo] 99999999999999\n");
    1221 
     1187                }
    12221188        }
    12231189        tmpbuf = ostrcat("not in play mode", NULL, 0, 0);
    1224 
    1225 printf("[webvideo] aaaaaaaaaaaaa\n");
    1226 printf("[webvideo] aaaaaaaaaaaaa status.play: %d\n",status.play);
    1227 printf("[webvideo] aaaaaaaaaaaaa status.timeshift: %d\n",status.timeshift);
    1228 printf("[webvideo] aaaaaaaaaaaaa status.webplayfile: %s\n",status.webplayfile);
    1229 
    12301190
    12311191        int count = 0;
    12321192        if(status.timeshift == 0 && status.play == 0 && (ostrcmp("play", param) == 0 || ostrcmp("play=", param) == 0))
    12331193        {
    1234 printf("[webvideo] bbbbbbbbbbbb\n");
    1235 
    12361194                int count = 0;
    12371195
     
    12471205        }
    12481206        else
    1249 {
    1250 printf("[webvideo] ccccccccccccccc\n");
    1251 
    12521207                count = 31;
    1253 }
    1254 printf("[webvideo] dddddddddddddd\n");
    12551208
    12561209        if(count >= 30 && status.play == 0)
    12571210        {
    1258 printf("[webvideo] eeeeeeeeeee\n");
    1259 
    12601211                free(status.webplayfile); status.webplayfile = NULL;
    12611212                free(tmpbuf); tmpbuf = NULL;
    12621213                tmpbuf = ostrcat("can not start playback", NULL, 0, 0);
    12631214        }
    1264 printf("[webvideo] fffffffffffffff\n");
    12651215
    12661216        if(status.timeshift == 0 && status.play == 1)
    12671217        {
    1268 printf("[webvideo] ggggggggggggg\n");
    1269 
    12701218                if(ostrcmp("stop", param) == 0 || ostrcmp("stop=", param) == 0)
    12711219                        writerc(getrcconfigint("rcstop", NULL));
     
    13161264                }
    13171265        }
    1318 printf("[webvideo] hhhhhhhhhhhhh\n");
    13191266
    13201267        if(fmt == 0)
    13211268        {
    1322 printf("[webvideo] iiiiiiiiiiiiiiiii\n");
    1323 
    13241269                buf = webcreatehead(buf, NULL, 1);
    13251270                buf = ostrcat(buf, "<tr><td align=center valign=top><font class=biglabel><br><br>Video ", 1, 0);
     
    13291274        }
    13301275        else
    1331 {
    1332 printf("[webvideo] jjjjjjjjjjjjjjjjjj\n");
    1333 
    13341276                buf = ostrcat(buf, tmpbuf, 1, 1);
    1335 }
    1336 printf("[webvideo] kkkkkkkkkkkk \n");
    1337 printf("#############################################\n");
    13381277
    13391278        return buf;
Note: See TracChangeset for help on using the changeset viewer.