mxfdemux: Compare positions to find the earliest pad, not flow returns
This commit is contained in:
parent
ce4a2b6828
commit
a3489ffa83
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user