[gst-devel] How can I have two main loops in my program??

wanting2learn wanting2learn at hotmail.co.uk
Tue Mar 16 13:15:08 CET 2010


Thanks for the quick replies.

Tim,  so if I use your method then do I need to do the following:?

g_bus = gst_pipeline_get_bus (GST_PIPELINE(m_pPipeline));
gst_bus_add_watch (g_bus, bus_call, g_loop);
//blah blah
g_main_loop_run (loop);


or do I just do simply:
g_bus = gst_pipeline_get_bus (GST_PIPELINE(m_pPipeline));
and then use your method

while ((msg = gst_bus_pop (g_bus))) {
    ... handle message ...
    gst_message_unref (msg);
  } 


Thanks

harry
-- 
View this message in context: http://n4.nabble.com/How-can-I-have-two-main-loops-in-my-program-tp1594663p1594788.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list