mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
mxfdemux: Compare positions to find the earliest pad, not flow returns
This commit is contained in:
parent
ce4a2b6828
commit
a3489ffa83
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue