From: Ítalo Rossi Date: Fri, 11 Dec 2020 17:38:25 +0000 (-0300) Subject: [mod_opus] Do not hangup call on decode error - fix 86a5ee3509 X-Git-Tag: v1.10.6^2~119^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F982%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_opus] Do not hangup call on decode error - fix 86a5ee3509 --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index cdc2b0229c..2081ef1b88 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -914,7 +914,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec, if (samples < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error: %s fs:%u plc:%s!\n", opus_strerror(samples), frame_size, plc ? "true" : "false"); - return SWITCH_STATUS_FALSE; + return SWITCH_STATUS_NOOP; } *decoded_data_len = samples * 2 * (!context->codec_settings.sprop_stereo ? codec->implementation->number_of_channels : 2);