Skip to content
Permalink
Browse files

Actually initialize the array

  • Loading branch information...
TheUbuntuGuy committed Dec 22, 2014
1 parent 6157865 commit efa58bb852169443cb8fb2d18afb9bd4a06263ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 gst/moodbar/gstfastspectrum.cpp
@@ -138,7 +138,7 @@ gst_fastspectrum_alloc_channel_data (GstFastSpectrum * spectrum)
spectrum->fft_output =reinterpret_cast<fftw_complex*>(
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*>(
G_OBJECT_GET_CLASS(spectrum));

0 comments on commit efa58bb

Please sign in to comment.
You can’t perform that action at this time.