Skip to content

Commit

Permalink
fix(HLSStream): reset mInitSegPtr in upDateInitSection
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Feb 24, 2020
1 parent f4a636b commit 5839fac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/demuxer/play_list/HLSStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ namespace Cicada {
{
string uri;
int ret;
mInitSegPtr = 0;

if (!mCurSeg || !mCurSeg->init_section || mCurInitSeg == mCurSeg->init_section) {
return 0;
Expand Down Expand Up @@ -202,7 +203,6 @@ namespace Cicada {
} while (size < mInitSegSize);

mInitSegSize = size;
mInitSegPtr = 0;
return 0;
}

Expand Down Expand Up @@ -921,7 +921,6 @@ namespace Cicada {

if (ret >= 0) {
upDateInitSection();
mInitSegPtr = 0;
ret = createDemuxer();

if (ret >= 0) {
Expand Down

0 comments on commit 5839fac

Please sign in to comment.