mxfdemux: Compare positions to find the earliest pad, not flow returns

This commit is contained in:
Sebastian Dröge 2014-05-27 12:08:50 +02:00
parent ce4a2b6828
commit a3489ffa83

View 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;
}
}