AW: bus call without g_main_loop

Bernhard Graaf bernhard.graaf at
Wed Mar 21 04:00:38 PDT 2012

Hi Peter,


thank you for answer. That’s the same way I do, but you will only call this
function in a loop (like g_main_loop). Without a loop, this function will
never be called.

But I want to call this function without the gstreamer loop, but I don’t
know how I get the signal implemented in a gtk-loop.






Von: at
[ at]
Im Auftrag von Peter Staab
Gesendet: Mittwoch, 21. März 2012 11:43
An: Discussion of the development of and with GStreamer
Betreff: Re: bus call without g_main_loop



I do it this way:
    GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(m_pipe));
    gst_bus_add_watch(bus, (GstBusFunc)bus_callback, m_pipe);

void bus_callback(GstBus *bus, GstMessage *msg, gpointer data)
// handle messages here


On 21.03.2012 11:04, Bernhard Graaf wrote: 

Hi @ all,


One short question: Is it possible to get the messages from the bus without
using the gstreamer loop (for example using the gtk+ loop)?


Thanks a lot for helping!


gstreamer-devel mailing list
gstreamer-devel at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list