From: Anthony Minessale Date: Mon, 14 Jan 2013 03:27:17 +0000 (-0600) Subject: fix vid regression X-Git-Tag: v1.3.13~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d78f4ffb19e3a8bc91d338dd11c61f1bbe97b728;p=thirdparty%2Ffreeswitch.git fix vid regression --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index e931899f7c..ed56a6d27d 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -4230,8 +4230,11 @@ static int rtp_common_write(switch_rtp_t *rtp_session, (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))); } - - send_msg->header.m = (m && !(rtp_session->rtp_bugs & RTP_BUG_NEVER_SEND_MARKER)) ? 1 : 0; + + if (!switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO) && !switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) { + send_msg->header.m = (m && !(rtp_session->rtp_bugs & RTP_BUG_NEVER_SEND_MARKER)) ? 1 : 0; + } + send_msg->header.ssrc = htonl(rtp_session->ssrc); if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_GOOGLEHACK) && rtp_session->send_msg.header.pt == 97) {