mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
mxf: check EOS cond with any segment's flag
The previous test was preventing the pad to be in EOS when the segment position was greater than segment stop. It ended up consuming all the data before getting in EOS. Regarding GST_SEEK_FLAG_SEGMENT it seems to be correctly handled later in the method. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2173>
This commit is contained in:
parent
c32f455b7b
commit
eb96f50c45
1 changed files with 1 additions and 2 deletions
|
@ -3189,8 +3189,7 @@ gst_mxf_demux_loop (GstPad * pad)
|
|||
goto pause;
|
||||
|
||||
/* check EOS condition */
|
||||
if ((demux->segment.flags & GST_SEEK_FLAG_SEGMENT) &&
|
||||
(demux->segment.stop != -1) &&
|
||||
if ((demux->segment.stop != -1) &&
|
||||
(demux->segment.position >= demux->segment.stop)) {
|
||||
guint i;
|
||||
gboolean eos = TRUE;
|
||||
|
|
Loading…
Reference in a new issue