AW: AW: bus call without g_main_loop
Bernhard Graaf
bernhard.graaf at gmx.de
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.
BR
Bernhard
-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
Im Auftrag von Tim-Philipp Müller
Gesendet: Mittwoch, 21. März 2012 12:11
An: gstreamer-devel at lists.freedesktop.org
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. Thats 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
> dont 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.
Cheers
-Tim
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list