AW: AW: bus call without g_main_loop

Bernhard Graaf bernhard.graaf at
Wed Mar 21 05:35:20 PDT 2012

Hi Tim,

many thanks for your answer. I think that works and I will try to fix my
problem on weekend.


-----Ursprüngliche Nachricht-----
Von: at
[ at]
Im Auftrag von Tim-Philipp Müller
Gesendet: Mittwoch, 21. März 2012 12:11
An: gstreamer-devel at
Betreff: Re: AW: bus call without g_main_loop

On Wed, 2012-03-21 at 12:00 +0100, Bernhard Graaf wrote:

Hi Bernhard,

> 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.

The "Gtk Loop" is exactly the same as "the gstreamer loop", it's just a
g_main_loop_run() for the default main context.

You can also get at the messages without a main loop using
gst_bus_*pop*(), but if you are using a Gtk+ main loop, you may just as
well do what Peter suggested.

If you want to use bus *signals* (rather than the bus watch function)
you need to use gst_bus_add_signal_watch() instead.


gstreamer-devel mailing list
gstreamer-devel at

More information about the gstreamer-devel mailing list