Browse code

b/f:core:consider RTCP for symmetric RTP if not relaying, too

Stefan Sayer authored on 22/02/2014 21:50:31
Showing 1 changed files
... ...
@@ -1075,6 +1075,8 @@ void AmRtpStream::recvRtcpPacket()
1075 1075
   // clear RTP timer
1076 1076
   clearRTPTimeout();
1077 1077
 
1078
+  handleSymmetricRtp(&recv_addr,true);
1079
+
1078 1080
   if(!relay_enabled || !relay_stream ||
1079 1081
      !relay_stream->l_sd)
1080 1082
     return;
... ...
@@ -1084,8 +1086,6 @@ void AmRtpStream::recvRtcpPacket()
1084 1086
     return;
1085 1087
   }
1086 1088
 
1087
-  handleSymmetricRtp(&recv_addr,true);
1088
-
1089 1089
   struct sockaddr_storage rtcp_raddr;
1090 1090
   memcpy(&rtcp_raddr,&relay_stream->r_saddr,sizeof(rtcp_raddr));
1091 1091
   am_set_port(&rtcp_raddr, relay_stream->r_rtcp_port);