]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
another regression stemming from the series of commits to make stupid sonus happy
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 4 Oct 2011 23:02:34 +0000 (18:02 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 4 Oct 2011 23:02:34 +0000 (18:02 -0500)
src/switch_rtp.c

index 24e8c3346dade3987f535ca197957c461c5e88d7..434c915d0bc90d7e645682992e83d69819ec7ffd 100644 (file)
@@ -3666,7 +3666,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
                rtp_session->send_msg.header.ts = htonl(rtp_session->ts);
 
 
-               if ((rtp_session->ts > (rtp_session->last_write_ts + (rtp_session->samples_per_interval * 10)))
+               if ((rtp_session->ts != RTP_TS_RESET && rtp_session->ts > (rtp_session->last_write_ts + (rtp_session->samples_per_interval * 10)))
                        || rtp_session->ts == rtp_session->samples_per_interval) {
                        m++;
                }