mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
collectpads: make it the best of wims and edwards patch.
Check the right flushing flag, but still add it to the pad-list.
This commit is contained in:
parent
2cb16ad7aa
commit
cfae0c15e7
1 changed files with 6 additions and 7 deletions
|
@ -1018,13 +1018,12 @@ gst_collect_pads_check_pads (GstCollectPads * pads)
|
|||
pads->numpads++;
|
||||
data = collected->data;
|
||||
|
||||
if (G_UNLIKELY (data->abidata.ABI.flushing))
|
||||
continue;
|
||||
|
||||
if (data->buffer)
|
||||
pads->queuedpads++;
|
||||
if (data->abidata.ABI.eos)
|
||||
pads->eospads++;
|
||||
if (G_LIKELY (!data->abidata.ABI.flushing)) {
|
||||
if (data->buffer)
|
||||
pads->queuedpads++;
|
||||
if (data->abidata.ABI.eos)
|
||||
pads->eospads++;
|
||||
}
|
||||
|
||||
/* add to the list of pads to collect */
|
||||
ref_data (data);
|
||||
|
|
Loading…
Reference in a new issue