]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9958: [freeswitch-core,mod_local_stream] Add agc object and use it in mod_local_stream
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 3 May 2017 18:50:49 +0000 (13:50 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 3 May 2017 18:50:49 +0000 (13:50 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 5f9dd2484d14639cbb94017dd3fc3a2450bb51e6..1a0d015d12156ccfc5ca8d01dcca15d45c79280a 100644 (file)
@@ -1416,6 +1416,7 @@ SWITCH_STANDARD_API(local_stream_function)
                                        if (source->agc) {
                                                switch_agc_destroy(&source->agc);
                                        }
+                                       source->energy_avg = 0;
                                }
                        }