About how to use gstreamer signals

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About how to use gstreamer signals

liangzhihong1984
Hi, everyone.
I would like to use gstreamer singals to get some running parameters, but I don't know how to use
them in my project. For example:
    I got a signal named "get-stats" in multiudpsink, and it is defined like this:
GValueArray*user_function                  (GstMultiUDPSink *gstmultiudpsink,
                                            gchar *host,
                                            gint port,
                                            gpointer user_data);

Get the statistics of the client with destination host and port.

gstmultiudpsink : the sink on which the signal is emitted
host : the hostname/IP address of the client to get stats on
port : the port of the client to get stats on
user_data : user data set when the signal handler was connected.
Returns : a GValueArray of uint64: bytes_sent, packets_sent, connect_time (in epoch seconds), disconnect_time (in epoch seconds)
 
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?
Can anybody give me some help.
 
Thank you in advance.
 
Best Regards,
Leon Liang



《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel