[gst-devel] how to make gstreamer run in separate thread

wl2776 wl2776 at gmail.com
Mon Apr 19 13:42:54 CEST 2010



Bugzilla from 4ernov at gmail.com wrote:
> 
> Could you please detect which thread your callbacks run in? Maybe friend 
> functions is the solution...
> 
Bus watch, set with gst_bus_add_watch, is called from the Glib main loop.
Sync signal handler, set with gst_bus_set_sync_handler, is called from the
elements' thread contexts.
There is no difference, how functions are defined. 
A callback function anyway won't be a C++ class member (except static class
members), because you have to pass its address to the registration routine,
and you can't determine the address of a C++ class member if its not static.

You can also be interested in the queue elements
(http://www.gstreamer.net/data/doc/gstreamer/head/manual/html/chapter-threads.html).

-- 
View this message in context: http://n4.nabble.com/how-to-make-gstreamer-run-in-separate-thread-tp1960435p2015774.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list