[gst-devel] How to listen for bus messages without GMainLoop

Kirill Kirichenko kirill.kirichenko at gmail.com
Thu Jul 17 22:15:10 CEST 2008


You can associate a GMainLoop that you use for gstreamer with another
GMainContext but the default.
 See the attachment.

Another way is to call gst_bus_pop() in your own loop.

K

On Thu, Jul 17, 2008 at 2:26 AM, Ash <hashbrown100 at hotmail.com> wrote:
> I am using my own GUI that doesn't make use of GLib. I am implementing
> gstreamer support for my GUI. I need to listen for EOS messages and
> potentially other errors, but adding a GMainLoop ruins the flow of my own
> GUI threads. I have tried creating a single thread that only runs
> G_main_loop_run(), but I noticed that I lose some Key Events to my own GUI
> when the loop is run. Is there anyway to listen for bus messages while
> either having GMainLoop or not without losing keystroke inputs?
> ________________________________
> Time for vacation? WIN what you need. Enter Now!
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: playbin.c
Type: text/x-csrc
Size: 3476 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080718/3b2060d7/attachment.c>


More information about the gstreamer-devel mailing list