From eb96f50c45c3ea7b35ff4601192ca5278a102c33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Tue, 4 May 2021 12:29:14 +0200 Subject: [PATCH] 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: --- gst/mxf/mxfdemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 5ed054c..e5b6ed4 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -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; -- 2.7.4