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:
Wim Taymans 2009-06-18 16:50:42 +02:00
parent a295d22575
commit dd3e2b557e

View file

@ -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);