]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9719 #resolve [Separate gen_ts_delta between audio and video]
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Nov 2016 19:04:56 +0000 (13:04 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Nov 2016 19:05:04 +0000 (13:05 -0600)
src/switch_core_media.c

index 6e43e31e9e3f76e13c192375d4ce955eed716d81..bdd7145b00392959c1d06ef11a12173a5a76bdde 100644 (file)
@@ -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,