Commit 1b98dfee authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

gst/spectrum/gstspectrum.c: Use the correct parameter order for the memset calls.

Original commit message from CVS:
* gst/spectrum/gstspectrum.c: (gst_spectrum_start),
(gst_spectrum_transform_ip):
Use the correct parameter order for the memset calls.
Thanks to Christian Schaller for noticing.
parent c537cfe0
common @ 76752780
Subproject commit cd25ca736bc2446800de2180ad71fc1da858d324 Subproject commit 76752780462a3c4da712d56d54c45402144b3d0f
...@@ -355,9 +355,9 @@ gst_spectrum_start (GstBaseTransform * trans) ...@@ -355,9 +355,9 @@ gst_spectrum_start (GstBaseTransform * trans)
filter->num_frames = 0; filter->num_frames = 0;
filter->num_fft = 0; filter->num_fft = 0;
if (filter->spect_magnitude) if (filter->spect_magnitude)
memset (filter->spect_magnitude, filter->bands * sizeof (gfloat), 0); memset (filter->spect_magnitude, 0, filter->bands * sizeof (gfloat));
if (filter->spect_phase) if (filter->spect_phase)
memset (filter->spect_phase, filter->bands * sizeof (gfloat), 0); memset (filter->spect_phase, 0, filter->bands * sizeof (gfloat));
gst_segment_init (&filter->segment, GST_FORMAT_UNDEFINED); gst_segment_init (&filter->segment, GST_FORMAT_UNDEFINED);
return TRUE; return TRUE;
...@@ -669,8 +669,8 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * in) ...@@ -669,8 +669,8 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * in)
gst_element_post_message (GST_ELEMENT (spectrum), m); gst_element_post_message (GST_ELEMENT (spectrum), m);
} }
memset (spect_magnitude, spectrum->bands * sizeof (gfloat), 0); memset (spect_magnitude, 0, spectrum->bands * sizeof (gfloat));
memset (spect_phase, spectrum->bands * sizeof (gfloat), 0); memset (spect_phase, 0, spectrum->bands * sizeof (gfloat));
spectrum->num_frames = 0; spectrum->num_frames = 0;
spectrum->num_fft = 0; spectrum->num_fft = 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment