]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3816
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Jan 2012 20:11:46 +0000 (14:11 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Jan 2012 20:11:46 +0000 (14:11 -0600)
src/switch_core_codec.c

index df95035c07a7d0e2ad587f555c68b50a06a1a68d..6b78ed66f95ec44d2a9d674aaf40c8508e4ce8ac 100644 (file)
@@ -204,6 +204,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_read_codec(switch_core_s
                                memset(&session->read_impl, 0, sizeof(session->read_impl));
                        }
                } else {
+                       if (codec == session->read_codec) {
+                               goto end;
+                       }
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Push codec %s:%d\n",
                                                          switch_channel_get_name(session->channel), codec->implementation->iananame, codec->implementation->ianacode);
                        codec->next = session->read_codec;