From: Anthony Minessale Date: Wed, 18 Jan 2012 20:11:46 +0000 (-0600) Subject: FS-3816 X-Git-Tag: v1.2-rc1~19^2~1^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=956514d1196ee801ce4facbc3451dc4c6c1a0e6c;p=thirdparty%2Ffreeswitch.git FS-3816 --- diff --git a/src/switch_core_codec.c b/src/switch_core_codec.c index df95035c07..6b78ed66f9 100644 --- a/src/switch_core_codec.c +++ b/src/switch_core_codec.c @@ -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;