FS-3816 oops

This commit is contained in:
Christopher Rienzo 2012-01-17 17:00:43 +00:00
parent e5139c3db5
commit 362c571647
1 changed files with 1 additions and 1 deletions

View File

@ -111,6 +111,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_real_read_codec(switch_c
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Original read codec set to %s:%d\n", switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Original read codec set to %s:%d\n",
switch_channel_get_name(session->channel), codec->implementation->iananame, codec->implementation->ianacode); switch_channel_get_name(session->channel), codec->implementation->iananame, codec->implementation->ianacode);
session->read_codec = session->real_read_codec = codec; session->read_codec = session->real_read_codec = codec;
changed_read_codec = 1;
if (codec->implementation) { if (codec->implementation) {
session->read_impl = *codec->implementation; session->read_impl = *codec->implementation;
} else { } else {
@ -125,7 +126,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_real_read_codec(switch_c
switch_channel_get_name(session->channel), codec->implementation->iananame, codec->implementation->ianacode); switch_channel_get_name(session->channel), codec->implementation->iananame, codec->implementation->ianacode);
/* Set real_read_codec to front of the list of read_codecs */ /* Set real_read_codec to front of the list of read_codecs */
cur_codec = session->read_codec; cur_codec = session->read_codec;
changed_read_codec = 1;
while (cur_codec != NULL) { while (cur_codec != NULL) {
if (cur_codec->next == session->real_read_codec) { if (cur_codec->next == session->real_read_codec) {
cur_codec->next = codec; cur_codec->next = codec;