[vlc-commits] Spatializer: init variables correctly

Jean-Baptiste Kempf git at videolan.org
Wed Mar 28 02:21:43 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Mar 28 00:34:59 2012 +0200| [87017ad340c11e9f4883b30b2d2c586d3a820cf7] | committer: Jean-Baptiste Kempf

Spatializer: init variables correctly

Close #6514
(cherry picked from commit 600d2090fb165045c6fb2fc42b16f64a3a400896)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=87017ad340c11e9f4883b30b2d2c586d3a820cf7
---

 modules/audio_filter/spatializer/revmodel.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/audio_filter/spatializer/revmodel.cpp b/modules/audio_filter/spatializer/revmodel.cpp
index d6dd9cf..0437e58 100644
--- a/modules/audio_filter/spatializer/revmodel.cpp
+++ b/modules/audio_filter/spatializer/revmodel.cpp
@@ -12,9 +12,11 @@
 // This code is public domain
 
 #include "revmodel.hpp"
+#include "tuning.h"
 #include <stdlib.h>
 
-revmodel::revmodel()
+revmodel::revmodel() : wet(initialwet), width(1.), mode(0.), roomsize(initialroom),
+                       damp(initialdamp), dry(initialdry)
 {
     // Tie the components to their buffers
     combL[0].setbuffer(bufcombL1,combtuningL1);



More information about the vlc-commits mailing list