]> git.sesse.net Git - vlc/commitdiff
VLM: use american numbers too here
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 21 May 2008 18:58:01 +0000 (21:58 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 21 May 2008 18:59:16 +0000 (21:59 +0300)
(we don't want sample scripts to break in certain countries)

src/input/vlmshell.c

index 9db54d95232b52d671502b2f483e77c393f88e3f..6d50926e07f0f0c1162f58ed012ff8d44588d7a4 100644 (file)
@@ -438,7 +438,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
             else
             {
                 /* Percent */
-                double d_new_position = i18n_atof( psz_argument ) / 100.0;
+                double d_new_position = us_atof( psz_argument ) / 100.0;
 
                 if( b_relative )
                 {
@@ -463,7 +463,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
     {
         if( psz_argument )
         {
-            const double d_scale = i18n_atof( psz_argument );
+            const double d_scale = us_atof( psz_argument );
             double d_position;
 
             vlm_ControlInternal( p_vlm, VLM_GET_MEDIA_INSTANCE_POSITION, p_media->cfg.id, psz_instance, &d_position );
@@ -481,7 +481,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
     {
         if( psz_argument )
         {
-            const double d_scale = i18n_atof( psz_argument );
+            const double d_scale = us_atof( psz_argument );
             double d_position;
 
             vlm_ControlInternal( p_vlm, VLM_GET_MEDIA_INSTANCE_POSITION, p_media->cfg.id, psz_instance, &d_position );