}
}
else if( !strcmp( psz_cmd, "chapter_n" ) )
- {
- val.b_bool = true;
- var_Set( p_input, "next-chapter", val );
- }
+ var_SetVoid( p_input, "next-chapter" );
else if( !strcmp( psz_cmd, "chapter_p" ) )
- {
- val.b_bool = true;
- var_Set( p_input, "prev-chapter", val );
- }
+ var_SetVoid( p_input, "prev-chapter" );
vlc_object_release( p_input );
return VLC_SUCCESS;
}
}
}
else if( !strcmp( psz_cmd, "title_n" ) )
- {
- val.b_bool = true;
- var_Set( p_input, "next-title", val );
- }
+ var_SetVoid( p_input, "next-title" );
else if( !strcmp( psz_cmd, "title_p" ) )
- {
- val.b_bool = true;
- var_Set( p_input, "prev-title", val );
- }
+ var_SetVoid( p_input, "prev-title" );
vlc_object_release( p_input );
return VLC_SUCCESS;
case '[':
if( p_sys->p_input )
- {
- val.b_bool = true;
- var_Set( p_sys->p_input, "prev-title", val );
- }
+ var_SetVoid( p_sys->p_input, "prev-title" );
ReturnTrue;
case ']':
if( p_sys->p_input )
- {
- val.b_bool = true;
- var_Set( p_sys->p_input, "next-title", val );
- }
+ var_SetVoid( p_sys->p_input, "next-title" );
ReturnTrue;
case '<':
if( p_sys->p_input )
- {
- val.b_bool = true;
- var_Set( p_sys->p_input, "prev-chapter", val );
- }
+ var_SetVoid( p_sys->p_input, "prev-chapter" );
ReturnTrue;
case '>':
if( p_sys->p_input )
- {
- val.b_bool = true;
- var_Set( p_sys->p_input, "next-chapter", val );
- }
+ var_SetVoid( p_sys->p_input, "next-chapter" );
ReturnTrue;
case 'p':
if( hasInput() )
{
int i_type = var_Type( p_input, "next-chapter" );
- var_SetBool( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
- "prev-chapter":"prev-title", true );
+ var_SetVoid( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
+ "prev-chapter":"prev-title" );
}
}
if( hasInput() )
{
int i_type = var_Type( p_input, "next-chapter" );
- var_SetBool( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
- "next-chapter":"next-title", true );
+ var_SetVoid( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
+ "next-chapter":"next-title" );
}
}
FIND_ANYWHERE );
if( p_input )
{
- vlc_value_t val;
- val.b_bool = true;
- var_Set( p_input, "next-title", val );
+ var_SetVoid( p_input, "next-title" );
vlc_object_release( p_input );
}
}
FIND_ANYWHERE );
if( p_input )
{
- vlc_value_t val;
- val.b_bool = true;
- var_Set( p_input, "prev-title", val );
+ var_SetVoid( p_input, "prev-title" );
vlc_object_release( p_input );
}
}
FIND_ANYWHERE );
if( p_input )
{
- vlc_value_t val;
- val.b_bool = true;
- var_Set( p_input, "next-chapter", val );
+ var_SetVoid( p_input, "next-chapter" );
vlc_object_release( p_input );
}
}
FIND_ANYWHERE );
if( p_input )
{
- vlc_value_t val;
- val.b_bool = true;
- var_Set( p_input, "prev-chapter", val );
+ var_SetVoid( p_input, "prev-chapter" );
vlc_object_release( p_input );
}
}