Merge pull request #4666 from TheUbuntuGuy/master

Fix moodbars not generating correctly
This commit is contained in:
David Sansome 2014-12-22 16:10:55 +11:00
commit db2aa7992b
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ gst_fastspectrum_alloc_channel_data (GstFastSpectrum * spectrum)
spectrum->fft_output =reinterpret_cast<fftw_complex*>( spectrum->fft_output =reinterpret_cast<fftw_complex*>(
fftw_malloc(sizeof(fftw_complex) * (nfft/2+1))); fftw_malloc(sizeof(fftw_complex) * (nfft/2+1)));
spectrum->spect_magnitude = new double[bands]; spectrum->spect_magnitude = new double[bands]{};
GstFastSpectrumClass* klass = reinterpret_cast<GstFastSpectrumClass*>( GstFastSpectrumClass* klass = reinterpret_cast<GstFastSpectrumClass*>(
G_OBJECT_GET_CLASS(spectrum)); G_OBJECT_GET_CLASS(spectrum));