text.psz_string = _("Subtitle Track");
var_Change( p_input, "spu-es", VLC_VAR_SETTEXT, &text, NULL );
+ var_Create( p_input, "spu-choice", VLC_VAR_INTEGER );
+ val.i_int = -1;
+ var_Change( p_input, "spu-choice", VLC_VAR_SETVALUE, &val, NULL );
+
/* Special read only objects variables for intf */
var_Create( p_input, "bookmarks", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
if( !val.psz_string )
return;
+ var_Change( p_input, "title", VLC_VAR_CLEARCHOICES, NULL, NULL );
+
for( i = 0; i < p_input->p->i_title; i++ )
{
vlc_value_t val2, text2;
if( !strcmp( psz_cmd, "position-offset" ) )
{
float f_position = var_GetFloat( p_input, "position" ) + newval.f_float;
- if( f_position < 0.0 )
- f_position = 0.0;
- else if( f_position > 1.0 )
- f_position = 1.0;
+ if( f_position < 0.f )
+ f_position = 0.f;
+ else if( f_position > 1.f )
+ f_position = 1.f;
var_SetFloat( p_this, "position", f_position );
}
else
{
/* Update "length" for better intf behavour */
const mtime_t i_length = var_GetTime( p_input, "length" );
- if( i_length > 0 && newval.f_float >= 0.0 && newval.f_float <= 1.0 )
+ if( i_length > 0 && newval.f_float >= 0.f && newval.f_float <= 1.f )
{
vlc_value_t val;