From: Benjamin Otte Date: Sat, 4 May 2002 22:24:03 +0000 (+0000) Subject: gstvolume.c:321: warning: operation on 'i' may be undefined X-Git-Tag: 1.19.3~511^2~16014 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff7ac81fd8febe36801d71ab2cc4be0f4fdafbf3;p=platform%2Fupstream%2Fgstreamer.git gstvolume.c:321: warning: operation on 'i' may be undefined Original commit message from CVS: gstvolume.c:321: warning: operation on 'i' may be undefined --- diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 21543ab..0084f56 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -318,7 +318,8 @@ volume_chain_int16 (GstPad *pad, GstBuffer *buf) i = 0; while(GST_DPMAN_PROCESS_COUNTDOWN(filter->dpman, sample_countdown, i)) { - data[i] = (gint16)(filter->real_vol_i * (gint)data[i++] / 8192); + data[i] = (gint16)(filter->real_vol_i * (gint)data[i] / 8192); + i++; } gst_pad_push(filter->srcpad,out_buf);