summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--ext/smoothwave/gstsmoothwave.c3
-rw-r--r--gst/smoothwave/gstsmoothwave.c3
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 47188036..172e7598 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-02-24 Gergely Nagy <algernon@bonehunter.rulez.org>
+
+ reviewed by: Maciej Katafiasz
+
+ * ext/smoothwave/gstsmoothwave.c: (gst_smoothwave_chain):
+ Fix C99'ism. Fixes #168269
+
+
2005-02-24 Jan Schmidt <thaytan@mad.scientist.com>
* ext/gdk_pixbuf/pixbufscale.c: (pixbufscale_scale):
Remove bogus gdk_pixbuf_scale_simple call, so now we
diff --git a/ext/smoothwave/gstsmoothwave.c b/ext/smoothwave/gstsmoothwave.c
index 16d57da6..2583a4db 100644
--- a/ext/smoothwave/gstsmoothwave.c
+++ b/ext/smoothwave/gstsmoothwave.c
@@ -349,10 +349,11 @@ gst_smoothwave_chain (GstPad * pad, GstData * _data)
prev_y[1] += diff_y;
}
} else {
- qheight = smoothwave->height / 2;
guchar *cur_pos;
gint prev_y;
+ qheight = smoothwave->height / 2;
+
prev_y = (gint32) (*samples) * qheight / 32768;
samples++;
cur_pos = smoothwave->imagebuffer + ((prev_y + qheight) * stride);
diff --git a/gst/smoothwave/gstsmoothwave.c b/gst/smoothwave/gstsmoothwave.c
index 16d57da6..2583a4db 100644
--- a/gst/smoothwave/gstsmoothwave.c
+++ b/gst/smoothwave/gstsmoothwave.c
@@ -349,10 +349,11 @@ gst_smoothwave_chain (GstPad * pad, GstData * _data)
prev_y[1] += diff_y;
}
} else {
- qheight = smoothwave->height / 2;
guchar *cur_pos;
gint prev_y;
+ qheight = smoothwave->height / 2;
+
prev_y = (gint32) (*samples) * qheight / 32768;
samples++;
cur_pos = smoothwave->imagebuffer + ((prev_y + qheight) * stride);