<span style="border-collapse:collapse">Hello All,<div><br></div><div>I would like to run my g_main_loop in a separate context, so did something like this</div><div><br></div><div>GMainContext *c = g_main_context_new();</div>

<div>GMainLoop *l = g_main_loop_new(c, false);</div><div>g_main_loop_run(l);</div><div><br></div><div>My bus watch code goes like this:</div><div>GstBus *bus = gst_pipeline_get_bus(pipe);</div><div>gst_bus_add_watch(bus, BusHandler, NULL);</div>

<div><br></div><div>If I run my main loop in the default context (by passing NULL), I receive call backs when there is an event on the bus. But after I moved it to a new context, I don&#39;t get the events anymore. Looking into the documentation, it looks like gst_bus_add_watch() adds watch only to the default context.&nbsp;</div>

<div><br></div><div>Could someone tell me how to add watch to my own context, please?</div><div><br></div><div>Thanks</div><div>Karthik</div></span>