]> git.sesse.net Git - vlc/blobdiff - src/input/vlmshell.c
osd: Remove a number of unneeded cast.
[vlc] / src / input / vlmshell.c
index 9db54d95232b52d671502b2f483e77c393f88e3f..90c59d985f6ead7e0a1979ba8423ea3c781f36b4 100644 (file)
@@ -30,7 +30,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 
 #include <stdio.h>
 #include <ctype.h>                                              /* tolower() */
@@ -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 );
@@ -968,17 +968,12 @@ vlm_media_sys_t *vlm_MediaSearch( vlm_t *vlm, const char *psz_name )
  *****************************************************************************/
 static vlm_schedule_sys_t *vlm_ScheduleNew( vlm_t *vlm, const char *psz_name )
 {
-    vlm_schedule_sys_t *p_sched = malloc( sizeof( vlm_schedule_sys_t ) );
-
-    if( !p_sched )
-    {
+    if( !psz_name )
         return NULL;
-    }
 
-    if( !psz_name )
-    {
+    vlm_schedule_sys_t *p_sched = malloc( sizeof( vlm_schedule_sys_t ) );
+    if( !p_sched )
         return NULL;
-    }
 
     p_sched->psz_name = strdup( psz_name );
     p_sched->b_enabled = false;