gstvolume.c:321: warning: operation on 'i' may be undefined
authorBenjamin Otte <otte@gnome.org>
Sat, 4 May 2002 22:24:03 +0000 (22:24 +0000)
committerBenjamin Otte <otte@gnome.org>
Sat, 4 May 2002 22:24:03 +0000 (22:24 +0000)
Original commit message from CVS:
gstvolume.c:321: warning: operation on 'i' may be undefined

gst/volume/gstvolume.c

index 21543ab9d7f8a04064059cdd9bca245e2462a942..0084f56b952e971d9a2623afe76d8e768ea375d4 100644 (file)
@@ -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);