summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-09-07 15:54:38 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-09-07 15:54:38 +0000
commit3d856bb3796ce2d7fbe7cdf2eebf5ca3fa4efae1 (patch)
tree098989f322631936c537c75c797fad572349ed9e
parenta43a4d5747317c7a8f82406436369757616fa23c (diff)
downloadgst-plugins-bad-3d856bb3796ce2d7fbe7cdf2eebf5ca3fa4efae1.tar.gz
gst-plugins-bad-3d856bb3796ce2d7fbe7cdf2eebf5ca3fa4efae1.tar.bz2
gst-plugins-bad-3d856bb3796ce2d7fbe7cdf2eebf5ca3fa4efae1.zip
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.
-rw-r--r--ChangeLog7
-rw-r--r--gst/spectrum/gstspectrum.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index e9d61448..921be127 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-07 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * 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.
+
2007-09-06 Stefan Kost <ensonic@users.sf.net>
* gst/mpegtsparse/mpegtsparse.c:
diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c
index 949b98dc..72948b20 100644
--- a/gst/spectrum/gstspectrum.c
+++ b/gst/spectrum/gstspectrum.c
@@ -355,9 +355,9 @@ gst_spectrum_start (GstBaseTransform * trans)
filter->num_frames = 0;
filter->num_fft = 0;
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)
- 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);
return TRUE;
@@ -669,8 +669,8 @@ gst_spectrum_transform_ip (GstBaseTransform * trans, GstBuffer * in)
gst_element_post_message (GST_ELEMENT (spectrum), m);
}
- memset (spect_magnitude, spectrum->bands * sizeof (gfloat), 0);
- memset (spect_phase, spectrum->bands * sizeof (gfloat), 0);
+ memset (spect_magnitude, 0, spectrum->bands * sizeof (gfloat));
+ memset (spect_phase, 0, spectrum->bands * sizeof (gfloat));
spectrum->num_frames = 0;
spectrum->num_fft = 0;
}