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

variables: remove useless VLC_VAR_DELCHOICE parameter

parent dcf2f383
......@@ -202,7 +202,7 @@ static int OpenPostproc( vlc_object_t *p_this )
var_Change( p_filter, FILTER_PREFIX "q", VLC_VAR_SETTEXT, &text, NULL );
var_Get( p_filter, FILTER_PREFIX "q", &val_orig );
var_Change( p_filter, FILTER_PREFIX "q", VLC_VAR_DELCHOICE, &val_orig, NULL );
var_Change( p_filter, FILTER_PREFIX "q", VLC_VAR_DELCHOICE, &val_orig );
val.psz_string = var_GetNonEmptyString( p_filter, FILTER_PREFIX "name" );
if( val_orig.i_int )
......
......@@ -325,7 +325,7 @@ static void VarListDel( input_thread_t *p_input,
if( i_value >= 0 )
{
val.i_int = i_value;
var_Change( p_input, psz_variable, VLC_VAR_DELCHOICE, &val, NULL );
var_Change( p_input, psz_variable, VLC_VAR_DELCHOICE, &val );
}
else
{
......
......@@ -156,7 +156,7 @@ void input_ControlVarInit ( input_thread_t *p_input )
var_Create( p_input, "program", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
var_Get( p_input, "program", &val );
if( val.i_int <= 0 )
var_Change( p_input, "program", VLC_VAR_DELCHOICE, &val, NULL );
var_Change( p_input, "program", VLC_VAR_DELCHOICE, &val );
text.psz_string = _("Program");
var_Change( p_input, "program", VLC_VAR_SETTEXT, &text, NULL );
......
......@@ -335,7 +335,7 @@ static void test_choices( libvlc_int_t *p_libvlc )
assert( var_CountChoices( p_libvlc, "bla" ) == 2 );
var_Change( p_libvlc, "bla", VLC_VAR_DELCHOICE, &val, &val2 );
var_Change( p_libvlc, "bla", VLC_VAR_DELCHOICE, &val );
assert( var_CountChoices( p_libvlc, "bla" ) == 1 );
var_Change( p_libvlc, "bla", VLC_VAR_GETCHOICES, &val, &val2 );
......
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