mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
Improve EOS logic to check all pads when pulling a packet returned EOS
This makes sure that we finish all pads that are at EOS now instead of just finishing one and returning to this point over and over again.
This commit is contained in:
parent
2dbe706330
commit
a930b36adc
1 changed files with 2 additions and 3 deletions
|
@ -2313,11 +2313,10 @@ gst_mxf_demux_pull_and_handle_klv_packet (GstMXFDemux * demux)
|
|||
gst_mxf_demux_find_essence_element (demux, p->current_essence_track,
|
||||
&position, FALSE);
|
||||
if (offset == -1) {
|
||||
GST_ERROR_OBJECT (demux,
|
||||
"Failed to find offset for late essence track");
|
||||
GST_ERROR_OBJECT (demux, "Failed to find offset for essence track");
|
||||
p->eos = TRUE;
|
||||
gst_pad_push_event (GST_PAD_CAST (p), gst_event_new_eos ());
|
||||
goto beach;
|
||||
continue;
|
||||
}
|
||||
|
||||
demux->offset = offset + demux->run_in;
|
||||
|
|
Loading…
Reference in a new issue