Commit e2e86c20 authored by Maciej Katafiasz's avatar Maciej Katafiasz

Small C99'ism fix.

Original commit message from CVS:
Small C99'ism fix.
parent a0392d69
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
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment