mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
adaptivedemux2: Recheck for a pending track on drain
When a track is completely drained and EOS, but there's a pending track on the slot loop again to switch to that track. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2838>
This commit is contained in:
parent
f33fe73bb7
commit
e89d84a178
1 changed files with 9 additions and 0 deletions
|
@ -3657,6 +3657,15 @@ restart:
|
|||
/* This should only happen if the track is EOS, or exactly in between
|
||||
* the parser outputting segment/caps before buffers. */
|
||||
g_assert (track->eos || !slot->pushed_timed_data);
|
||||
|
||||
/* If we drained the track, but there's a pending track on the slot
|
||||
* loop again to activate it */
|
||||
if (slot->pending_track) {
|
||||
GST_DEBUG_OBJECT (demux,
|
||||
"Track '%s' (period %u) drained, but has a pending track to activate",
|
||||
track->stream_id, track->period_num);
|
||||
goto restart;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue