]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4382 --resolve missing \!
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 16:30:00 +0000 (11:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 19 Jul 2012 16:30:00 +0000 (11:30 -0500)
src/switch_rtp.c

index f6bc3647733b9ef60181d4ff0443180136e49590..dcc5e09e48c78be38adbdeeba32cead9e8553a89 100644 (file)
@@ -4130,7 +4130,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
                send_msg->header.m = (m && !(rtp_session->rtp_bugs & RTP_BUG_NEVER_SEND_MARKER)) ? 1 : 0;
 
                /* If the marker was set, and the timestamp seems to have started over - set a new SSRC, to indicate this is a new stream */
-               if (send_msg->header.m && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_SECURE_SEND) &&
+               if (send_msg->header.m && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_SECURE_SEND) &&
                        (rtp_session->rtp_bugs & RTP_BUG_CHANGE_SSRC_ON_MARKER) && (rtp_session->last_write_ts == RTP_TS_RESET ||
                        (rtp_session->ts <= rtp_session->last_write_ts && rtp_session->last_write_ts > 0))) {
                                switch_rtp_set_ssrc(rtp_session, (uint32_t) ((intptr_t) rtp_session + (uint32_t) switch_epoch_time_now(NULL)));