summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-27 12:08:50 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-27 12:24:43 +0200
commita3489ffa8398a2539f644e23e0f6e285263259f8 (patch)
treeb3ee59c29cd89942e81dc27e5fb5b43a11eb2b2a /gst
parentce4a2b68286f505c3caa77501fd63ab10f139fd9 (diff)
downloadgstreamer-plugins-bad-a3489ffa8398a2539f644e23e0f6e285263259f8.tar.gz
mxfdemux: Compare positions to find the earliest pad, not flow returns
Diffstat (limited to 'gst')
-rw-r--r--gst/mxf/mxfdemux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index eb87a92c2..bba73984b 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -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;
}
}