volume: fix sample depth typo
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 5 Aug 2011 10:32:09 +0000 (11:32 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 5 Aug 2011 11:37:05 +0000 (13:37 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=656022

gst/volume/gstvolume.c

index 152943df650e7f9f4ccd358479e7d2425e93e01d..1f40f62d4f954de4b9462516200754425913a325 100644 (file)
@@ -263,7 +263,7 @@ volume_choose_func (GstVolume * self)
         case 8:
           /* only clamp if the gain is greater than 1.0
            */
-          if (self->current_vol_i16 > VOLUME_UNITY_INT8) {
+          if (self->current_vol_i8 > VOLUME_UNITY_INT8) {
             self->process = volume_process_int8_clamp;
           } else {
             self->process = volume_process_int8;