yield from time to time
authorThomas Vander Stichele <thomas@apestaart.org>
Sat, 25 May 2002 18:03:10 +0000 (18:03 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sat, 25 May 2002 18:03:10 +0000 (18:03 +0000)
Original commit message from CVS:
yield from time to time

gst/adder/gstadder.c

index c982dae..2ecb6d7 100644 (file)
@@ -479,6 +479,8 @@ gst_adder_loop (GstElement *element)
     GST_DEBUG (0, "pushing buf_out");
     gst_pad_push (adder->srcpad, buf_out);
 
+    /* give another element a chance to do something */
+    gst_element_yield (element);
   } while (TRUE);
 }