# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <stdio.h>
#include <ctype.h> /* tolower() */
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 )
{
{
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 );
{
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 );
*****************************************************************************/
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;