From: Anthony Minessale Date: Tue, 1 Jun 2010 17:10:50 +0000 (-0500) Subject: fix typo that generated null video codecs in inherit_codec X-Git-Tag: v1.2-rc1~773 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f41fbbc05bbef4501752aa6d67ff0f0a3eb68367;p=thirdparty%2Ffreeswitch.git fix typo that generated null video codecs in inherit_codec --- 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);