From dd3e2b557ef9c0d4cfab0ab86eff8ccc94380a18 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 18 Jun 2009 16:50:42 +0200 Subject: [PATCH] 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. --- libs/gst/base/gstcollectpads.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 20cc8dbce7..97fa9b3812 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -988,12 +988,14 @@ gst_collect_pads_check_pads (GstCollectPads * pads) /* update the stats */ pads->numpads++; data = collected->data; - if (G_LIKELY (!GST_PAD_IS_FLUSHING (data->pad))) { - if (data->buffer) - pads->queuedpads++; - if (data->abidata.ABI.eos) - pads->eospads++; - } + + if (G_UNLIKELY (data->abidata.ABI.flushing)) + continue; + + if (data->buffer) + pads->queuedpads++; + if (data->abidata.ABI.eos) + pads->eospads++; /* add to the list of pads to collect */ ref_data (data);