[vlc-commits] macosx/CoreInteraction: communicate volume value correctly to the core
Felix Paul Kühne
git at videolan.org
Sat Dec 15 15:20:28 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Dec 15 15:19:42 2012 +0100| [a4edb8672e59240fb87def033c5f1d70e7c65a97] | committer: Felix Paul Kühne
macosx/CoreInteraction: communicate volume value correctly to the core
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4edb8672e59240fb87def033c5f1d70e7c65a97
---
modules/gui/macosx/CoreInteraction.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index 7c8daa2..b3552a7 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -519,7 +519,9 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
if (!p_intf)
return;
- playlist_VolumeSet(pl_Get(p_intf), i_value / (float)AOUT_VOLUME_DEFAULT);
+ float f_value = i_value / (float)AOUT_VOLUME_DEFAULT;
+
+ playlist_VolumeSet(pl_Get(p_intf), f_value);
}
#pragma mark -
More information about the vlc-commits
mailing list