'gst_bus_add_watch' not getting bus messages

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Dec 4 05:32:33 PST 2012


On Tue, 2012-12-04 at 05:21 -0800, deepthips wrote:

> In my case, I got it working with gst_bus_set_sync_handler.  The issue is,
> whenever I get an EOS signal, I need to quit like 'gmain_loop_quit'.  In my
> application, I am not using a gmain loop because it is a QT application and
> I invoke it via Qapplication->exec. So I cant use a gmain loop.  I am
> getting EOS signal on bus and I need to quit the pipeline somehow.. like I
> do gmain_loop_quit. Is there any function call for that?

If you use a Qt application, there will be a Qt event loop of some sort,
and you should integrate with that and not use GMainLoop (on Linux Qt
will usually use GMainLoop as well, but not on other systems, if I
remember correctly).

Cheers
 -Tim



More information about the gstreamer-devel mailing list