Commit bb1fb263 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

VLM: use american numbers too here

(we don't want sample scripts to break in certain countries)
parent 6d85ab85
...@@ -438,7 +438,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg, ...@@ -438,7 +438,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
else else
{ {
/* Percent */ /* Percent */
double d_new_position = i18n_atof( psz_argument ) / 100.0; double d_new_position = us_atof( psz_argument ) / 100.0;
if( b_relative ) if( b_relative )
{ {
...@@ -463,7 +463,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg, ...@@ -463,7 +463,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
{ {
if( psz_argument ) if( psz_argument )
{ {
const double d_scale = i18n_atof( psz_argument ); const double d_scale = us_atof( psz_argument );
double d_position; double d_position;
vlm_ControlInternal( p_vlm, VLM_GET_MEDIA_INSTANCE_POSITION, p_media->cfg.id, psz_instance, &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, ...@@ -481,7 +481,7 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
{ {
if( psz_argument ) if( psz_argument )
{ {
const double d_scale = i18n_atof( psz_argument ); const double d_scale = us_atof( psz_argument );
double d_position; double d_position;
vlm_ControlInternal( p_vlm, VLM_GET_MEDIA_INSTANCE_POSITION, p_media->cfg.id, psz_instance, &d_position ); vlm_ControlInternal( p_vlm, VLM_GET_MEDIA_INSTANCE_POSITION, p_media->cfg.id, psz_instance, &d_position );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment