mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
demux: adaptive: sent discontinuity once with init
This commit is contained in:
parent
86e8452681
commit
c73601e7b1
@ -356,7 +356,12 @@ ChunkInterface * SegmentTracker::getNextChunk(bool switch_allowed,
|
|||||||
/* here next == wanted chunk pos */
|
/* here next == wanted chunk pos */
|
||||||
bool b_gap = (next.number != chunk.pos.number);
|
bool b_gap = (next.number != chunk.pos.number);
|
||||||
const bool b_switched = (next.rep != chunk.pos.rep);
|
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)
|
if(b_switched)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user