Changeset 41314


Ignore:
Timestamp:
11/27/17 22:08:10 (6 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/libeplayer3/container/container_ffmpeg.c

    r41313 r41314  
    15911591//obi
    15921592                char* cookie = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *tmpstr3 = NULL, *tmpstr4 = NULL, *headers = NULL, *useragent = NULL;
    1593                 int count = 0, count1 = 0, count2 = 0, count3 = 0, i = 0, i1 = 0, i2 = 0, i3 = 0;
     1593                int count = 0, count1 = 0, count2 = 0, count3 = 0, i = 0, i1 = 0, i2 = 0, i3 = 0, usetslivemode = 0;
     1594
    15941595                struct splitstr* ret1 = NULL;
    15951596                struct splitstr* ret2 = NULL;
     
    16521653
    16531654                ffmpeg_printf(10, "check user-agent and header\n");
    1654                 tmpstr4 = ostrcat(filename, NULL, 0, 0);
     1655
     1656                if (ostrstr(filename, "&tslivemode=1") != NULL)
     1657                        usetslivemode = 1;
    16551658
    16561659                if(ostrstr(filename, "|") != NULL)
     
    17321735
    17331736//        if (ostrstr(filename, ".m3u8") != NULL)
    1734         if (ostrstr(tmpstr4, "&tslivemode=1") != NULL)
    1735         {
     1737                if (usetslivemode == 1)
     1738                {
    17361739                        ffmpeg_printf(10, "set tslivemode\n");
    17371740                        context->playback->isTSLiveMode = 1;
     
    17461749            av_dict_set(&avio_opts, "reconnect_streamed", "1", 0);
    17471750        }
    1748         free(tmpstr4), tmpstr4 = NULL;
    17491751    }
    17501752
Note: See TracChangeset for help on using the changeset viewer.