[gst-devel] When not using the default GMainContext

Julien Isorce julien.isorce at gmail.com
Tue Jun 2 12:29:59 CEST 2009


and the test ...

2009/6/2 Julien Isorce <julien.isorce at gmail.com>

> Hi,
>
> I join to this mail a minimal test that reproduce a problem.
> The "end of stream" event is not handled by the bus_call callback,
> when not using the default GMainContext.
> I mean, I am doing :
>
> --------------------------
> context = g_main_context_new ();
> loop = g_main_loop_new (context, FALSE);
> g_main_context_unref (context);
>
> instead of :
>
> loop = g_main_loop_new (NULL, FALSE);
> ----------------------------
>
> Compiled with: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10)
> main.c -o main
>
> (note that this is a minimal test, actually I am in a case where I have
> several GMainLoop and with a different GMainContext for each loop)
>
> Is it a gstreamer restriction (or bug) or I am using glib in a wrong way ?
>
> Sincerely
>
> Julien
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090602/d9579718/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-csrc
Size: 2327 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090602/d9579718/attachment.c>


More information about the gstreamer-devel mailing list