collectpads2: delay collecting buffer if a pad newly set waiting
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 15 Dec 2011 13:31:05 +0000 (14:31 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 15 Dec 2011 15:51:49 +0000 (16:51 +0100)
... as commented; make code correspond to it (again).

libs/gst/base/gstcollectpads2.c

index 0505da6..932e3c9 100644 (file)
@@ -1527,6 +1527,7 @@ gst_collect_pads2_default_collected (GstCollectPads2 * pads, gpointer user_data)
      * so give another thread a chance to deliver a possibly
      * older buffer; don't charge on yet with the current oldest */
     ret = GST_FLOW_OK;
+    goto done;
   }
 
   best = pads->earliest_data;