summaryrefslogtreecommitdiff
path: root/gst/mxf
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-10-21 17:11:03 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-10-21 19:54:15 +0300
commit41982e6ccf0f323b9536b984e62637f598406c90 (patch)
treed8b0335f5c806f02088b19ea80d4c235b352edbe /gst/mxf
parent4624cae7c857af25c0e5e46d36256a05f4cd2071 (diff)
downloadgstreamer-plugins-bad-41982e6ccf0f323b9536b984e62637f598406c90.tar.gz
mxfdemux: If seeking to the remaining parts of the file fails on EOS, consider the stream done
Without this we would run this while loop forever, always seeking again for the same stream.
Diffstat (limited to 'gst/mxf')
-rw-r--r--gst/mxf/mxfdemux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index e45e49c6e..5ab4d16f5 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -3945,6 +3945,9 @@ gst_mxf_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
} else {
GST_WARNING_OBJECT (demux,
"Seek to remaining part of the file failed");
+ p->eos = TRUE;
+ gst_pad_push_event (GST_PAD_CAST (p), gst_event_new_eos ());
+ continue;
}
}