1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

demux: adaptive: sent discontinuity once with init

This commit is contained in:
Francois Cartegnie 2021-10-20 10:53:27 +02:00 committed by Jean-Baptiste Kempf
parent 86e8452681
commit c73601e7b1

View File

@ -356,7 +356,12 @@ ChunkInterface * SegmentTracker::getNextChunk(bool switch_allowed,
/* here next == wanted chunk pos */
bool b_gap = (next.number != chunk.pos.number);
const bool b_switched = (next.rep != chunk.pos.rep);
const bool b_discontinuity = chunk.chunk->discontinuity && current.isValid();
bool b_discontinuity = chunk.chunk->discontinuity && current.isValid();
if(b_discontinuity && current.number == next.number)
{
/* if we are on the same segment and indexes have been sent, then discontinuity was */
b_discontinuity = false;
}
if(b_switched)
{