mxfdemux: Compare positions to find the earliest pad, not flow returns
authorSebastian Dröge <sebastian@centricular.com>
Tue, 27 May 2014 10:08:50 +0000 (12:08 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 27 May 2014 10:24:43 +0000 (12:24 +0200)
gst/mxf/mxfdemux.c

index eb87a92..bba7398 100644 (file)
@@ -357,8 +357,8 @@ gst_mxf_demux_get_earliest_pad (GstMXFDemux * demux)
   for (i = 0; i < demux->src->len; i++) {
     GstMXFDemuxPad *p = g_ptr_array_index (demux->src, i);
 
-    if (!p->eos && p->last_flow < earliest) {
-      earliest = p->last_flow;
+    if (!p->eos && p->position < earliest) {
+      earliest = p->position;
       pad = p;
     }
   }