1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

demux: adaptive: reset all status on new position

This commit is contained in:
Francois Cartegnie 2021-12-20 17:24:39 +01:00 committed by Jean-Baptiste Kempf
parent b8b52a006c
commit 4d784f69f9

View File

@ -142,6 +142,10 @@ bool AbstractStream::resetForNewPosition(vlc_tick_t seekMediaTime)
eof = false;
demuxfirstchunk = true;
notfound_sequence = 0;
last_buffer_status = BufferingStatus::Lessthanmin;
inrestart = false;
needrestart = false;
discontinuity = false;
if(!demuxer || demuxer->needsRestartOnSeek()) /* needs (re)start */
{
delete currentChunk;