mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
collectpads: Properly handle flushing pads.
If a pad is flushing, it should not be considered as either eos or containing data.
This commit is contained in:
parent
536baf3d65
commit
a295d22575
1 changed files with 6 additions and 4 deletions
|
@ -988,10 +988,12 @@ gst_collect_pads_check_pads (GstCollectPads * pads)
|
|||
/* update the stats */
|
||||
pads->numpads++;
|
||||
data = collected->data;
|
||||
if (data->buffer)
|
||||
pads->queuedpads++;
|
||||
if (data->abidata.ABI.eos)
|
||||
pads->eospads++;
|
||||
if (G_LIKELY (!GST_PAD_IS_FLUSHING (data->pad))) {
|
||||
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