summaryrefslogtreecommitdiffstats
path: root/gst/smoothwave/gstsmoothwave.c
diff options
context:
space:
mode:
authorMaciej Katafiasz <mathrick@mathrick.org>2005-02-23 23:37:24 +0000
committerMaciej Katafiasz <mathrick@mathrick.org>2005-02-23 23:37:24 +0000
commite2e86c207f9640de04a7b2b3cd32f2bc8607e742 (patch)
tree0cbc05abd49b2ad2d63cd29b4ea589a96de7b88f /gst/smoothwave/gstsmoothwave.c
parenta0392d69af354183f405de9d57a1508d23faf180 (diff)
downloadgst-plugins-bad-e2e86c207f9640de04a7b2b3cd32f2bc8607e742.tar.gz
gst-plugins-bad-e2e86c207f9640de04a7b2b3cd32f2bc8607e742.tar.bz2
gst-plugins-bad-e2e86c207f9640de04a7b2b3cd32f2bc8607e742.zip
Small C99'ism fix.
Original commit message from CVS: Small C99'ism fix.
Diffstat (limited to 'gst/smoothwave/gstsmoothwave.c')
-rw-r--r--gst/smoothwave/gstsmoothwave.c3
1 files changed, 2 insertions, 1 deletions
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);