[gst-devel] GstRtpBin Elemenst Signal "on-timeout"
Aniruddha
aniruddhachourasia at tataelxsi.co.in
Fri Dec 12 14:20:20 CET 2008
Hi All,
I am using GstRtpBin element in the gst-plugins-bad-0.10.8 for implementing
rtsp/rtp streaming over udp. I am able to stream properly. Both SR and RRs are
getting transfered. But when the client stops because of any reason(crash, power
failure, network disconnection, etc) without giving a TEARDOWN signal, the
server should also stop streaming. I have attached a signal handler for the signals
on-timeout, on-bye-timeout, on-bye-ssrc emitted by the gstrtpbin element. But the
signal handlers are not getting called. Following is the sample code for the above
implementation:-
------------------------------------------------------------------------------------------------------------------------------------
void on_bye_ssrc (GstElement* object,
guint arg0,
guint arg1,
gpointer user_data)
{
printf ("\n\n######### Inside on-bye-ssrc() callback function#########\n\n");
}
void on_bye_timeout (GstElement* object,
guint arg0,
guint arg1,
gpointer user_data)
{
printf ("\n\n#########Inside on-bye-timeout() callback function#########\n\n");
}
void on_timeout (GstElement* object,
guint arg0,
guint arg1,
gpointer user_data)
{
printf ("\n\n#########Inside on-timeout() callback function#########\n\n");
}
int main (){
---
---
g_signal_connect (pstGstRtpBin, "on-bye-ssrc", G_CALLBACK (on_bye_ssrc), NULL);
g_signal_connect (pstGstRtpBin, "on-timeout", G_CALLBACK (on_timeout), NULL);
g_signal_connect (pstGstRtpBin, "on-bye-timeout", G_CALLBACK (on_bye_timeout), NULL);
---
---
}
------------------------------------------------------------------------------------------------------------------------------------
Please suggest how to attach the signal handlers.
Regards
Aniruddha
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081212/d1e26925/attachment.htm>
More information about the gstreamer-devel
mailing list