]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11945: [mod_opus] don't hangup call on decoder error.
authorDragos Oancea <dragos@signalwire.com>
Tue, 23 Jul 2019 09:46:25 +0000 (09:46 +0000)
committerAndrey Volk <andywolk@gmail.com>
Tue, 23 Jul 2019 14:02:52 +0000 (18:02 +0400)
src/mod/codecs/mod_opus/mod_opus.c

index 4fc5c76bad25a830c41f07d6fe62e86fbe327dd7..cdc2b0229c70891f2baeababf92cdd10f8f239e7 100644 (file)
@@ -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_GENERR;
+               return SWITCH_STATUS_FALSE;
        }
 
        *decoded_data_len = samples * 2 * (!context->codec_settings.sprop_stereo ? codec->implementation->number_of_channels : 2);