<div dir="ltr"><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div> >>>>>></span><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">gst_bus_add_watch</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"> (bus, my_bus_callback, </span><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">NULL</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">);<<<<<<<</span><div><br></div><div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">why we pass an argument like this-------my_bus_callback-----</span><br></font></div><div><font color="#24292e" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="font-size:12px;white-space:pre">in gst_bus_add_watch instead of my_bus_callback(*bus,*message,user_data)</span></font><br></div><div>because here my_bus_callback is of type  <span class="gmail-returnvalue" style="color:rgb(114,159,207)"><a href="https://gstreamer.freedesktop.org/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" style="color:rgb(114,159,207)">gboolean</a>  </span><span class="gmail-c_punctuation" style="color:rgb(136,138,133)">(</span><span style="background-color:rgba(114,159,207,0.1);color:rgb(0,0,0)">*GstBusFunc</span><span class="gmail-c_punctuation" style="color:rgb(136,138,133)">)</span></div><div><pre class="gmail-programlisting" style="background:rgba(114,159,207,0.1);border:1px solid rgba(114,159,207,0.2);padding:0.5em;color:rgb(0,0,0)"><a href="https://gstreamer.freedesktop.org/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean" style="color:rgb(114,159,207)"><span class="gmail-returnvalue">gboolean</span></a>
<span class="gmail-c_punctuation" style="color:rgb(136,138,133)">(</span>*GstBusFunc<span class="gmail-c_punctuation" style="color:rgb(136,138,133)">)</span> (<span class="gmail-parameter"><code><a class="gmail-link" href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html" title="GstBus" style="text-decoration-line:none;color:rgb(52,101,164)"><span class="gmail-type">GstBus</span></a> *bus</code></span>,
               <span class="gmail-parameter"><code><a class="gmail-link" href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstMessage.html" title="GstMessage" style="text-decoration-line:none;color:rgb(52,101,164)"><span class="gmail-type">GstMessage</span></a> *message</code></span>,
               <span class="gmail-parameter"><code><a href="https://gstreamer.freedesktop.org/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer" style="text-decoration-line:none;color:rgb(52,101,164)"><span class="gmail-type">gpointer</span></a> user_data</code></span>);</pre><pre class="gmail-programlisting" style="background:rgba(114,159,207,0.1);border:1px solid rgba(114,159,207,0.2);padding:0.5em;color:rgb(0,0,0)">So how *bus,*messsage and user_data is going</pre></div></div></div>