collectpads: make it the best of wims and edwards patch.
authorStefan Kost <ensonic@users.sf.net>
Mon, 6 Jul 2009 23:23:41 +0000 (00:23 +0100)
committerStefan Kost <ensonic@users.sf.net>
Mon, 6 Jul 2009 23:23:41 +0000 (00:23 +0100)
Check the right flushing flag, but still add it to the pad-list.

libs/gst/base/gstcollectpads.c

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