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:
Stefan Kost 2009-07-07 00:23:41 +01:00
parent 2cb16ad7aa
commit cfae0c15e7

View file

@ -1018,13 +1018,12 @@ gst_collect_pads_check_pads (GstCollectPads * pads)
pads->numpads++; pads->numpads++;
data = collected->data; data = collected->data;
if (G_UNLIKELY (data->abidata.ABI.flushing)) if (G_LIKELY (!data->abidata.ABI.flushing)) {
continue;
if (data->buffer) if (data->buffer)
pads->queuedpads++; pads->queuedpads++;
if (data->abidata.ABI.eos) if (data->abidata.ABI.eos)
pads->eospads++; pads->eospads++;
}
/* add to the list of pads to collect */ /* add to the list of pads to collect */
ref_data (data); ref_data (data);