Module: sems
Branch: master
Commit: 83e4714aaf84e59b88a7c505a26aaf9f0857330c
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=83e4714aaf84e59b88a7c505a26aaf9f0857330c

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon Oct 15 12:50:11 2012 +0200

b/f: remove RTCP socket from receiver

Receiving RTCP packets after destruction of the RTP stream would cause a 
SEGFAULT.
Thx to Dmitry Sinina for reporting and posting his patch.

---

 core/AmRtpStream.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp
index 37b8d9f..61aab70 100644
--- a/core/AmRtpStream.cpp
+++ b/core/AmRtpStream.cpp
@@ -435,9 +435,12 @@ AmRtpStream::AmRtpStream(AmSession* _s, int _if)
 AmRtpStream::~AmRtpStream()
 {
   if(l_sd){
-    if (AmRtpReceiver::haveInstance())
+    if (AmRtpReceiver::haveInstance()){
       AmRtpReceiver::instance()->removeStream(l_sd);
+      AmRtpReceiver::instance()->removeStream(l_rctp_sd);
+    }
     close(l_sd);
+    close(l_rtcp_sd);
   }
 }
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to