From f41fbbc05bbef4501752aa6d67ff0f0a3eb68367 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 1 Jun 2010 12:10:50 -0500 Subject: [PATCH] fix typo that generated null video codecs in inherit_codec --- src/switch_ivr_originate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 94b3187a8c..47875df4b2 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -386,7 +386,7 @@ static void inherit_codec(switch_channel_t *caller_channel, switch_core_session_ if (switch_core_session_get_read_impl(session, &impl) == SWITCH_STATUS_SUCCESS) { - if (switch_core_session_get_video_read_impl(session, &impl) == SWITCH_STATUS_SUCCESS) { + if (switch_core_session_get_video_read_impl(session, &video_impl) == SWITCH_STATUS_SUCCESS) { switch_snprintf(tmp, sizeof(tmp), "%s@%uh@%ui,%s", impl.iananame, impl.samples_per_second, impl.microseconds_per_packet / 1000, video_impl.iananame);