Commit 8cc97cc2 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: fix regression with init segments

must not issue a discontinuity on first init segment
parent cac5bd83
......@@ -155,12 +155,14 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed, HTTPConnectionM
return NULL;
}
/* stop initializing after 1st chunk */
initializing = false;
if(initializing)
{
b_gap = false;
/* stop initializing after 1st chunk */
initializing = false;
}
SegmentChunk *chunk = segment->toChunk(count, rep, connManager);
if(chunk)
count++;
/* We need to check segment/chunk format changes, as we can't rely on representation's (HLS)*/
if(format != chunk->getStreamFormat())
......@@ -175,6 +177,9 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed, HTTPConnectionM
notify(SegmentTrackerEvent(chunk));
}
if(chunk)
count++;
return chunk;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment