From: Anthony Minessale Date: Wed, 9 Nov 2016 19:04:56 +0000 (-0600) Subject: FS-9719 #resolve [Separate gen_ts_delta between audio and video] X-Git-Tag: v1.8.0~1112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8eb97261dc0dade25f5aa242e21a5447dd1b7f;p=thirdparty%2Ffreeswitch.git FS-9719 #resolve [Separate gen_ts_delta between audio and video] --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 6e43e31e9e..bdd7145b00 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -7416,7 +7416,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi flags[SWITCH_RTP_FLAG_BYTESWAP] = 0; } - if ((val = switch_channel_get_variable(session->channel, "rtp_gen_ts_delta")) && switch_true(val)) { + if ((val = switch_channel_get_variable(session->channel, "rtp_gen_ts_delta_audio")) && switch_true(val)) { flags[SWITCH_RTP_FLAG_GEN_TS_DELTA] = 1; } @@ -7508,6 +7508,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi !((val = switch_channel_get_variable(session->channel, "disable_rtp_auto_adjust")) && switch_true(val))) { flags[SWITCH_RTP_FLAG_AUTOADJ]++; } + + if ((val = switch_channel_get_variable(session->channel, "rtp_gen_ts_delta_video")) && switch_true(val)) { + flags[SWITCH_RTP_FLAG_GEN_TS_DELTA] = 1; + } + timer_name = NULL; switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,