]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7436: [mod_opus] fix the plc counter to actually count
authorMichael Jerris <mike@jerris.com>
Tue, 2 Jun 2015 17:23:43 +0000 (13:23 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 2 Jun 2015 17:23:43 +0000 (13:23 -0400)
src/mod/codecs/mod_opus/mod_opus.c

index fbfc1595270700db704066b1a812f8cfa571821f..38f69816652dec260a5ca2d3aea6c7c4521e3e62 100644 (file)
@@ -353,7 +353,7 @@ static switch_status_t switch_opus_destroy(switch_codec_t *codec)
     
        if (context) {
                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);
                        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*/
        if (*flag & SFF_PLC) {
-               context->counter_plc_fec;
+               context->counter_plc_fec++;
                if (session) {
                        jb = switch_core_session_get_jb(session, SWITCH_MEDIA_TYPE_AUDIO);
                }