Please explain gst_bus_add_watch() method

Shubham Shrivastava shubham333vm at gmail.com
Fri Aug 24 10:05:52 UTC 2018


>>>>>>gst_bus_add_watch (bus, my_bus_callback, NULL);<<<<<<<

why we pass an argument like this-------my_bus_callback-----
in gst_bus_add_watch instead of my_bus_callback(*bus,*message,user_data)
because here my_bus_callback is of type  gboolean
<https://gstreamer.freedesktop.org/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean>
  (*GstBusFunc)

gboolean <https://gstreamer.freedesktop.org/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean>(*GstBusFunc)
(GstBus <https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html>
*bus,
               GstMessage
<https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html>
*message,
               gpointer
<https://gstreamer.freedesktop.org/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer>
user_data);

So how *bus,*messsage and user_data is going
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180824/60efb499/attachment.html>


More information about the gstreamer-devel mailing list