Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; 1. If the client crash/power failure/network disconnected, there is no way to send TEARDOWN to server so the server will keep sending packets to the client. I think there is no way to notify server stopping the streaming.<br>
<br>&nbsp;&nbsp;&nbsp; 2. on-bye-timeout, on-timeout will be emitted by GstRtpBin if bye packet is received or there is no any packets received for a while. I noticed you mentioned &quot;TEARDOWN&quot;, so I think maybe you&#39;re playing a RTSP movie and so rtspsrc maybe is used in your pipeline. Rtspsrc uses GstRtpBin internally and connects these signals then do the EOS logics. So I am surprised you have a GstRtpBin element in your pipeline and wanna connect these signals manually. Paste your pipeline here, maybe it can make things clear.<br>
<br>Eric Zhang<br><br><div class="gmail_quote">2008/12/12 Aniruddha <span dir="ltr">&lt;<a href="mailto:aniruddhachourasia@tataelxsi.co.in">aniruddhachourasia@tataelxsi.co.in</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div bgcolor="#ffffff">
<div><font size="2" face="Arial">Hi All,</font></div>
<div><font size="2" face="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am 
using GstRtpBin element in the gst-plugins-bad-0.10.8 for 
implementing</font></div>
<div><font size="2" face="Arial">rtsp/rtp streaming over udp. </font><font size="2" face="Arial">I am able to stream properly. Both SR and RRs are 
</font></div>
<div><font size="2" face="Arial">getting transfered. But </font><font size="2" face="Arial">when the client stops because of any reason(crash, power</font></div>
<div><font size="2" face="Arial">failure, network </font><font size="2" face="Arial">disconnection, etc) without giving a TEARDOWN signal, the </font></div>
<div><font size="2" face="Arial">server should also </font><font size="2" face="Arial">stop </font><font size="2" face="Arial">streaming. I have attached a signal 
handler for the signals </font></div>
<div><font size="2" face="Arial">on-timeout, on-bye-timeout, on-bye-ssrc emitted by 
the gstrtpbin element. But the </font></div>
<div><font size="2" face="Arial">signal handlers are&nbsp;not getting called. 
Following is the sample code for the above </font></div>
<div><font size="2" face="Arial">implementation:-</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div>
<div><font size="2" face="Arial">------------------------------------------------------------------------------------------------------------------------------------</font></div>
<div><font size="2" face="Arial">void on_bye_ssrc (GstElement* 
object,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
guint 
arg0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
guint 
arg1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
gpointer user_data)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf 
(&quot;\n\n######### Inside on-bye-ssrc() callback 
function#########\n\n&quot;);<br>}</font></div>
<div><font size="2" face="Arial"></font>&nbsp;</div><font size="2" face="Arial">
<div><br>void on_bye_timeout (GstElement* 
object,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
guint 
arg0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
guint 
arg1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
gpointer user_data)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf 
(&quot;\n\n#########Inside on-bye-timeout() callback 
function#########\n\n&quot;);<br>}</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>void on_timeout (GstElement* 
object,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
guint 
arg0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
guint 
arg1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
gpointer user_data)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf 
(&quot;\n\n#########Inside on-timeout() callback 
function#########\n\n&quot;);<br>}<br></div>
<div>int main (){</div>
<div>---</div>
<div>---</div>
<div>g_signal_connect (pstGstRtpBin, &quot;on-bye-ssrc&quot;, G_CALLBACK 
(on_bye_ssrc),&nbsp;NULL);<br>g_signal_connect (pstGstRtpBin, &quot;on-timeout&quot;, 
G_CALLBACK (on_timeout), NULL);<br>g_signal_connect (pstGstRtpBin, 
&quot;on-bye-timeout&quot;, G_CALLBACK (on_bye_timeout),&nbsp;NULL);<br>---</div>
<div>---</div>
<div>}</div>
<div>------------------------------------------------------------------------------------------------------------------------------------</div>
<div>&nbsp;</div>
<div>Please suggest how to attach the signal handlers.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards</div>
<div>Aniruddha</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</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>

</div>
<br>------------------------------------------------------------------------------<br>
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
The future of the web can&#39;t happen without you. &nbsp;Join us at MIX09 to help<br>
pave the way to the Next Web now. Learn more and register at<br>
<a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>_______________________________________________<br>

gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>