]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4032 --resolve please try to avoid the whitespace changes by using git diff -w
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Mar 2012 20:53:05 +0000 (15:53 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Mar 2012 20:53:09 +0000 (15:53 -0500)
src/switch_rtp.c

index f9b2c1a7d8fc1bdf4a75f93d3197a9de765868bc..5e741c4eb7207a27315e9145983a51754b3ab0bd 100644 (file)
@@ -3008,7 +3008,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                        if (rtcp_poll_status == SWITCH_STATUS_SUCCESS) {
                                rtcp_status = read_rtcp_packet(rtp_session, &rtcp_bytes, flags);
                                
-                               if (rtcp_status == SWITCH_STATUS_SUCCESS && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_RTCP_PASSTHRU)) {
+                               if (rtcp_status == SWITCH_STATUS_SUCCESS) {
+                                       switch_rtp_reset_media_timer(rtp_session);
+
+                                       if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_RTCP_PASSTHRU)) {
                                        switch_core_session_t *session = switch_core_memory_pool_get_data(rtp_session->pool, "__session");
                                        switch_channel_t *channel = switch_core_session_get_channel(session);
 
@@ -3075,6 +3078,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                                }
                        }
                }
+               }
 
 
                if (bytes && rtp_session->recv_msg.header.version == 2 &&