[SCM] calf/master: Initialise a variable when analyzer mode is invalid.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:41:06 UTC 2013


The following commit has been merged in the master branch:
commit 35ccdfb4aec99fcaf1e48ea12a353753d946a67a
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sat Aug 25 14:38:06 2012 +0100

    Initialise a variable when analyzer mode is invalid.

diff --git a/src/modules.cpp b/src/modules.cpp
index 2db8a81..2728a0d 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -1008,6 +1008,9 @@ bool analyzer_audio_module::get_graph(int index, int subindex, float *data, int
                         // right channel
                         val = R;
                         break;
+                    default:
+                        val = 0.f;
+                        break;
                 }
                 fft_in[i] = (fftw_real)val;
                 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list