From e2e86c207f9640de04a7b2b3cd32f2bc8607e742 Mon Sep 17 00:00:00 2001 From: Maciej Katafiasz Date: Wed, 23 Feb 2005 23:37:24 +0000 Subject: Small C99'ism fix. Original commit message from CVS: Small C99'ism fix. --- ext/smoothwave/gstsmoothwave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') 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); -- cgit v1.2.1