Don't go after the last component of a track
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 2 Feb 2009 14:54:00 +0000 (15:54 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 2 Feb 2009 14:54:00 +0000 (15:54 +0100)
gst/mxf/mxfdemux.c

index a5b1a1b2d10c3872b424f9a6cc45ccd7dfe1a2ff..8354183409fa482866edfe17c0de35d2cee71373 100644 (file)
@@ -1317,6 +1317,7 @@ gst_mxf_demux_pad_set_component (GstMXFDemux * demux, GstMXFDemuxPad * pad,
 
   if (pad->current_component_index >= sequence->n_structural_components) {
     GST_DEBUG_OBJECT (demux, "After last structural component");
+    pad->current_component_index = sequence->n_structural_components - 1;
     return GST_FLOW_UNEXPECTED;
   }