[vlc-commits] aout: avoid implicit double upconversion
Rémi Denis-Courmont
git at videolan.org
Wed Aug 13 20:29:13 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 20:31:46 2014 +0300| [f1d881e2c8b48967b383812030f5182d0201e58f] | committer: Rémi Denis-Courmont
aout: avoid implicit double upconversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1d881e2c8b48967b383812030f5182d0201e58f
---
src/playlist/aout.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/playlist/aout.c b/src/playlist/aout.c
index f55c345..d24e14f 100644
--- a/src/playlist/aout.c
+++ b/src/playlist/aout.c
@@ -86,13 +86,13 @@ int playlist_VolumeUp (playlist_t *pl, int value, float *volp)
if (aout != NULL)
{
float vol = aout_VolumeGet (aout);
- if (vol >= 0.)
+ if (vol >= 0.f)
{
vol += delta;
- if (vol < 0.)
- vol = 0.;
- if (vol > 2.)
- vol = 2.;
+ if (vol < 0.f)
+ vol = 0.f;
+ if (vol > 2.f)
+ vol = 2.f;
vol = (roundf (vol / stepSize)) * stepSize;
if (volp != NULL)
*volp = vol;
More information about the vlc-commits
mailing list