[gst-devel] multiple chain vs one loop

daniel fischer dan at f3c.com
Tue Mar 30 22:59:22 CEST 2004


hi all,

the (interesting) discussion about schedulers made me think about something else: iirc i read something in the docs that "you shouldnt do multiple chain functions at all. do a loop." this seems to be not(/no longer?) the case?

a situation where multiple chains would win over a loop imo could be an "overlay" node that paints a small picture on a larger video stream (like a logo inserter). the imagesrc or whatever could just push a buffer whenever it's "location" property changes, and the overlay would keep (and use) the old buffer as long as it's logo_sink doesnt chain() again. ?

a different but similar situation would be some video mixing element receiving buffers at multiple inputs (obviously :), at different framerates. one could think that this could be handled much better with multiple chain functions than with just a loop that pull()s exactly one buffer for each element. but then again, if it does regard the timestamps properly and does some sync magic, a loop might be appropriate.

any thoughts and comments on this appreciated,
are multiple chain() functions viable?
in what situations?
am i right about the above scenarios?

regards,
-dan

-- 
dan at f3c.com
http://f3c.com/dan/





More information about the gstreamer-devel mailing list