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:
Edward Hervey 2009-06-18 16:41:46 +02:00
parent 536baf3d65
commit a295d22575

View file

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