1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-28 05:04:13 +00:00

FS-7436: [mod_opus] fix the plc counter to actually count

This commit is contained in:
Michael Jerris 2015-06-02 13:23:43 -04:00
parent 4aaaa485ce
commit e21a423d9f

@ -353,7 +353,7 @@ static switch_status_t switch_opus_destroy(switch_codec_t *codec)
if (context) { if (context) {
if (context->decoder_object) { if (context->decoder_object) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"tried PLC or FEC %d times \n",context->counter_plc_fec); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "tried PLC or FEC %d times \n", context->counter_plc_fec);
opus_decoder_destroy(context->decoder_object); opus_decoder_destroy(context->decoder_object);
context->decoder_object = NULL; context->decoder_object = NULL;
} }
@ -419,7 +419,7 @@ static switch_status_t switch_opus_decode(switch_codec_t *codec,
/*FEC: shameless rip-off from mod_silk.c . OPUS only supports n+1 FEC , SILK is supposed to work with n+1, n+2*/ /*FEC: shameless rip-off from mod_silk.c . OPUS only supports n+1 FEC , SILK is supposed to work with n+1, n+2*/
if (*flag & SFF_PLC) { if (*flag & SFF_PLC) {
context->counter_plc_fec; context->counter_plc_fec++;
if (session) { if (session) {
jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO); jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO);
} }