mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
collectpads: use the right flushing flag.
We need to use the pad private flag because the other pad flag is protected with the pad lock instead.
This commit is contained in:
parent
a295d22575
commit
dd3e2b557e
1 changed files with 8 additions and 6 deletions
|
@ -988,12 +988,14 @@ gst_collect_pads_check_pads (GstCollectPads * pads)
|
||||||
/* update the stats */
|
/* update the stats */
|
||||||
pads->numpads++;
|
pads->numpads++;
|
||||||
data = collected->data;
|
data = collected->data;
|
||||||
if (G_LIKELY (!GST_PAD_IS_FLUSHING (data->pad))) {
|
|
||||||
if (data->buffer)
|
if (G_UNLIKELY (data->abidata.ABI.flushing))
|
||||||
pads->queuedpads++;
|
continue;
|
||||||
if (data->abidata.ABI.eos)
|
|
||||||
pads->eospads++;
|
if (data->buffer)
|
||||||
}
|
pads->queuedpads++;
|
||||||
|
if (data->abidata.ABI.eos)
|
||||||
|
pads->eospads++;
|
||||||
|
|
||||||
/* add to the list of pads to collect */
|
/* add to the list of pads to collect */
|
||||||
ref_data (data);
|
ref_data (data);
|
||||||
|
|
Loading…
Reference in a new issue