bus call without g_main_loop
Peter Staab
pixstamp at gmx.net
Wed Mar 21 03:43:05 PDT 2012
Hi,
I do it this way:
GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(m_pipe));
gst_bus_add_watch(bus, (GstBusFunc)bus_callback, m_pipe);
gst_object_unref(GST_OBJECT(bus));
void bus_callback(GstBus *bus, GstMessage *msg, gpointer data)
{
// handle messages here
}
Regards,
On 21.03.2012 11:04, Bernhard Graaf wrote:
>
> Hi @ all,
>
>
>
> One short question: Is it possible to get the messages from the bus
> without using the gstreamer loop (for example using the gtk+ loop)?
>
>
>
> Thanks a lot for helping!
>
> Bernhard
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120321/1a43e12d/attachment.htm>
More information about the gstreamer-devel
mailing list