]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix typo that generated null video codecs in inherit_codec
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 1 Jun 2010 17:10:50 +0000 (12:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 1 Jun 2010 17:10:50 +0000 (12:10 -0500)
src/switch_ivr_originate.c

index 94b3187a8c38533942540ca6ffdee5396719de90..47875df4b2efc62192899a783e902b19be6c8f49 100644 (file)
@@ -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);