<DIV>Hi, everyone.</DIV>
<DIV>I&nbsp;would like to use gstreamer singals to get some running&nbsp;parameters, but&nbsp;I don't know how to use</DIV>
<DIV>them in my&nbsp;project. For example:</DIV>
<DIV>&nbsp;&nbsp;&nbsp; I got a signal named "get-stats" in multiudpsink, and it is defined like this:</DIV>
<DIV><PRE class="programlisting">GValueArray*user_function                  (<A href="http://gstreamer.freedesktop.org/data/doc/gstreamer/0.10.2/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multiudpsink.html#GstMultiUDPSink">GstMultiUDPSink</A> *gstmultiudpsink,
                                            gchar *host,
                                            gint port,
                                            gpointer user_data);</PRE>
<P>Get the statistics of the client with destination <EM class="parameter"><CODE><FONT face="NSimsun">host</FONT></CODE></EM> and <EM class="parameter"><CODE><FONT face="NSimsun">port</FONT></CODE></EM>.</P>
<P></P>
<DIV class="variablelist">
<TABLE border="0">
<COLGROUP>
<COL vAlign="top" align="left">
</COLGROUP><TBODY>
<TR>
<TD><SPAN class="term"><EM class="parameter"><CODE><FONT face="NSimsun">gstmultiudpsink</FONT></CODE></EM>&nbsp;:</SPAN></TD>
<TD>the sink on which the signal is emitted </TD></TR>
<TR>
<TD><SPAN class="term"><EM class="parameter"><CODE><FONT face="NSimsun">host</FONT></CODE></EM>&nbsp;:</SPAN></TD>
<TD>the hostname/IP address of the client to get stats on </TD></TR>
<TR>
<TD><SPAN class="term"><EM class="parameter"><CODE><FONT face="NSimsun">port</FONT></CODE></EM>&nbsp;:</SPAN></TD>
<TD>the port of the client to get stats on </TD></TR>
<TR>
<TD><SPAN class="term"><EM class="parameter"><CODE><FONT face="NSimsun">user_data</FONT></CODE></EM>&nbsp;:</SPAN></TD>
<TD>user data set when the signal handler was connected.</TD></TR>
<TR>
<TD><SPAN class="term"><SPAN class="emphasis"><EM>Returns</EM></SPAN>&nbsp;:</SPAN></TD>
<TD>a GValueArray of uint64: bytes_sent, packets_sent, connect_time (in epoch seconds), disconnect_time (in epoch seconds) </TD></TR></TBODY></TABLE></DIV>
<DIV class="variablelist">&nbsp;</DIV>
<DIV class="variablelist">My question is when I use this signal with g_signal_emit_by_name, how to return the GValueArray Object, where is it stored? Or any other better ways?</DIV>
<DIV class="variablelist">Can anybody give me some help.</DIV>
<DIV class="variablelist">&nbsp;</DIV>
<DIV class="variablelist">Thank you in advance.</DIV>
<DIV class="variablelist">&nbsp;</DIV>
<DIV class="variablelist">Best Regards, </DIV>
<DIV class="variablelist">Leon Liang</DIV></DIV><br><!-- footer --><br>
<span title="neteasefooter">
<hr/>
<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1698,833,77&cid=148,4,1&sid=1804&show=ignore&url=http://xyw.163.com/2008/heka/">《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱</a>
</span>