<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2> I am
using GstRtpBin element in the gst-plugins-bad-0.10.8 for
implementing</FONT></DIV>
<DIV><FONT face=Arial size=2>rtsp/rtp streaming over udp. </FONT><FONT
face=Arial size=2>I am able to stream properly. Both SR and RRs are
</FONT></DIV>
<DIV><FONT face=Arial size=2>getting transfered. But </FONT><FONT face=Arial
size=2>when the client stops because of any reason(crash, power</FONT></DIV>
<DIV><FONT face=Arial size=2>failure, network </FONT><FONT face=Arial
size=2>disconnection, etc) without giving a TEARDOWN signal, the </FONT></DIV>
<DIV><FONT face=Arial size=2>server should also </FONT><FONT face=Arial
size=2>stop </FONT><FONT face=Arial size=2>streaming. I have attached a signal
handler for the signals </FONT></DIV>
<DIV><FONT face=Arial size=2>on-timeout, on-bye-timeout, on-bye-ssrc emitted by
the gstrtpbin element. But the </FONT></DIV>
<DIV><FONT face=Arial size=2>signal handlers are not getting called.
Following is the sample code for the above </FONT></DIV>
<DIV><FONT face=Arial size=2>implementation:-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>void on_bye_ssrc (GstElement*
object,<BR>
guint
arg0,<BR>
guint
arg1,<BR>
gpointer user_data)<BR>{<BR> printf
("\n\n######### Inside on-bye-ssrc() callback
function#########\n\n");<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>void on_bye_timeout (GstElement*
object,<BR>
guint
arg0,<BR>
guint
arg1,<BR>
gpointer user_data)<BR>{<BR> printf
("\n\n#########Inside on-bye-timeout() callback
function#########\n\n");<BR>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>void on_timeout (GstElement*
object,<BR>
guint
arg0,<BR>
guint
arg1,<BR>
gpointer user_data)<BR>{<BR> printf
("\n\n#########Inside on-timeout() callback
function#########\n\n");<BR>}<BR></DIV>
<DIV>int main (){</DIV>
<DIV>---</DIV>
<DIV>---</DIV>
<DIV>g_signal_connect (pstGstRtpBin, "on-bye-ssrc", G_CALLBACK
(on_bye_ssrc), NULL);<BR>g_signal_connect (pstGstRtpBin, "on-timeout",
G_CALLBACK (on_timeout), NULL);<BR>g_signal_connect (pstGstRtpBin,
"on-bye-timeout", G_CALLBACK (on_bye_timeout), NULL);<BR>---</DIV>
<DIV>---</DIV>
<DIV>}</DIV>
<DIV>------------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Please suggest how to attach the signal handlers.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV>Aniruddha</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></FONT><p>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.</p>
</BODY></HTML>