[vlc-commits] hotkeys: stick to single precision

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 22:23:08 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 22:47:36 2014 +0300| [07d3ca8dfdb1c0db0bbbe616f3b2702f8176cef3] | committer: Rémi Denis-Courmont

hotkeys: stick to single precision

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07d3ca8dfdb1c0db0bbbe616f3b2702f8176cef3
---

 modules/control/hotkeys.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 7a5db8c..d1a898f 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -356,9 +356,9 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
             break;
 
         case ACTIONID_PLAY:
-            if( p_input && var_GetFloat( p_input, "rate" ) != 1. )
+            if( p_input && var_GetFloat( p_input, "rate" ) != 1.f )
                 /* Return to normal speed */
-                var_SetFloat( p_input, "rate", 1. );
+                var_SetFloat( p_input, "rate", 1.f );
             else
             {
                 ClearChannels( p_intf, p_vout );
@@ -1225,7 +1225,7 @@ static void DisplayVolume( intf_thread_t *p_intf, vout_thread_t *p_vout,
 
 static void DisplayRate( vout_thread_t *p_vout, float f_rate )
 {
-    DisplayMessage( p_vout, _("Speed: %.2fx"), f_rate );
+    DisplayMessage( p_vout, _("Speed: %.2fx"), (double) f_rate );
 }
 
 static float AdjustRateFine( vlc_object_t *p_obj, const int i_dir )



More information about the vlc-commits mailing list