GNOME Bugzilla – Bug 637569
volume underflows and wraps around to maxuint
Last modified: 2011-01-18 01:35:26 UTC
Created attachment 176703 [details] [review] proposed patch when the volume is muted the current logic always substract one step from the volume... which isn't the best if the volume is already 0.. patch to fix this attached
Created attachment 178519 [details] [review] media-keys: Fix volume underflow When reducing the volume and the volume is already low, avoid underflowing it. Spotted by Sjoerd Simons <sjoerd.simons@collabora.co.uk>
I believe this patch fixes the problem just as well, please test.
Created attachment 178521 [details] [review] media-keys: Fix volume underflow When reducing the volume and the volume is already low, avoid underflowing it. Spotted by Sjoerd Simons <sjoerd.simons@collabora.co.uk>
I can reproduce the bug with 2.91.8, and I can't with any of the two patches.
Sjoerd, feel free to submit your simplifications as a separate patch. commit a0410ebb15109ee44ca103079d1da7225ec88214 Author: Bastien Nocera <hadess@hadess.net> Date: Mon Jan 17 15:28:33 2011 +0000 media-keys: Fix volume underflow When reducing the volume and the volume is already low, avoid underflowing it. Spotted by Sjoerd Simons <sjoerd.simons@collabora.co.uk> https://bugzilla.gnome.org/show_bug.cgi?id=637569