mxfdemux: If seeking to the remaining parts of the file fails on EOS, consider the...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 21 Oct 2015 14:11:03 +0000 (17:11 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 21 Oct 2015 16:54:15 +0000 (19:54 +0300)
Without this we would run this while loop forever, always seeking again for
the same stream.

gst/mxf/mxfdemux.c

index e45e49c..5ab4d16 100644 (file)
@@ -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;
         }
       }