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

variables: remove second useless VLC_VAR_CLEARCHOICES parameter

parent c006da05
......@@ -425,7 +425,7 @@ static void aout_PrepareStereoMode (audio_output_t *aout,
aout_owner_t *owner = aout_owner (aout);
/* Fill Stereo mode choices */
var_Change (aout, "stereo-mode", VLC_VAR_CLEARCHOICES, NULL, NULL);
var_Change (aout, "stereo-mode", VLC_VAR_CLEARCHOICES, NULL);
vlc_value_t val, txt;
val.i_int = 0;
......
......@@ -597,7 +597,7 @@ static void UpdateBookmarksOption( input_thread_t *p_input )
vlc_memstream_puts( &vstr, "bookmarks=" );
vlc_mutex_lock( &priv->p_item->lock );
var_Change( p_input, "bookmark", VLC_VAR_CLEARCHOICES, 0, 0 );
var_Change( p_input, "bookmark", VLC_VAR_CLEARCHOICES, 0 );
for( int i = 0; i < priv->i_bookmark; i++ )
{
......
......@@ -329,7 +329,7 @@ static void VarListDel( input_thread_t *p_input,
}
else
{
var_Change( p_input, psz_variable, VLC_VAR_CLEARCHOICES, &val, NULL );
var_Change( p_input, psz_variable, VLC_VAR_CLEARCHOICES, &val );
}
Trigger( p_input, i_event );
......
......@@ -289,7 +289,7 @@ void input_ControlVarNavigation( input_thread_t *p_input )
}
/* Create titles and chapters */
var_Change( p_input, "title", VLC_VAR_CLEARCHOICES, NULL, NULL );
var_Change( p_input, "title", VLC_VAR_CLEARCHOICES, NULL );
for( int i = 0; i < input_priv(p_input)->i_title; i++ )
{
......@@ -388,7 +388,7 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
}
/* Build chapter list */
var_Change( p_input, "chapter", VLC_VAR_CLEARCHOICES, NULL, NULL );
var_Change( p_input, "chapter", VLC_VAR_CLEARCHOICES, NULL );
for( i = 0; i < t->i_seekpoint; i++ )
{
vlc_value_t val;
......
......@@ -113,7 +113,7 @@ void vout_InitInterlacingSupport(vout_thread_t *vout, bool is_interlaced)
var_Change(vout, "deinterlace", VLC_VAR_SETTEXT, &text, NULL);
const module_config_t *optd = config_FindConfig("deinterlace");
var_Change(vout, "deinterlace", VLC_VAR_CLEARCHOICES, NULL, NULL);
var_Change(vout, "deinterlace", VLC_VAR_CLEARCHOICES, NULL);
if (likely(optd != NULL))
for (unsigned i = 0; i < optd->list_count; i++) {
val.i_int = optd->list.i[i];
......@@ -129,7 +129,7 @@ void vout_InitInterlacingSupport(vout_thread_t *vout, bool is_interlaced)
var_Change(vout, "deinterlace-mode", VLC_VAR_SETTEXT, &text, NULL);
const module_config_t *optm = config_FindConfig("deinterlace-mode");
var_Change(vout, "deinterlace-mode", VLC_VAR_CLEARCHOICES, NULL, NULL);
var_Change(vout, "deinterlace-mode", VLC_VAR_CLEARCHOICES, NULL);
if (likely(optm != NULL))
for (unsigned i = 0; i < optm->list_count; i++) {
if (!DeinterlaceIsModeValid(optm->list.psz[i]))
......
......@@ -344,7 +344,7 @@ static void test_choices( libvlc_int_t *p_libvlc )
!strcmp( val2.p_list->p_values[0].psz_string, "one" ) );
var_FreeList( &val, &val2 );
var_Change( p_libvlc, "bla", VLC_VAR_CLEARCHOICES, NULL, NULL );
var_Change( p_libvlc, "bla", VLC_VAR_CLEARCHOICES, NULL );
assert( var_CountChoices( p_libvlc, "bla" ) == 0 );
var_Destroy( p_libvlc, "bla" );
......
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