gst/spectrum/gstspectrum.c: Don't terminate on fabs(in)>1.0. Init doubles as doubles.
authorStefan Kost <ensonic@users.sourceforge.net>
Wed, 13 Aug 2008 09:17:20 +0000 (09:17 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Wed, 13 Aug 2008 09:17:20 +0000 (09:17 +0000)
Original commit message from CVS:
* gst/spectrum/gstspectrum.c:
Don't terminate on fabs(in)>1.0. Init doubles as doubles.

ChangeLog
gst/spectrum/gstspectrum.c

index af94a03..406a686 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-13  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/spectrum/gstspectrum.c:
+         Don't terminate on fabs(in)>1.0. Init doubles as doubles.
+
 2008-08-13  Edward Hervey  <edward.hervey@collabora.co.uk>
 
        * sys/v4l2/gstv4l2src.c: (gst_v4l2src_query):
index f2f8aad..268d87d 100644 (file)
@@ -626,11 +626,9 @@ process_f##width (GstSpectrum *spectrum, const g##type *samples) \
   \
   for (i = 0, j = 0; i < nfft; i++) { \
     /* convert to mono */ \
-    for (k = 0, acc = 0; k < channels; k++) \
+    for (k = 0, acc = 0.0; k < channels; k++) \
       acc += samples[j++]; \
     in[i] = (g##type) (acc / channels); \
-    if (abs (in[i]) > 1.0) \
-      g_assert_not_reached(); \
   } \
   \
   if (!spectrum->fft_ctx) { \