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

variables: remove useless VLC_VAR_GETTEXT parameter

parent 9c9ecc53
......@@ -1110,8 +1110,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
/* Get the descriptive name of the variable */
var_Change( p_input, psz_variable, VLC_VAR_GETTEXT,
&val_name, NULL );
var_Change( p_input, psz_variable, VLC_VAR_GETTEXT, &val_name );
if( !val_name.psz_string ) val_name.psz_string = strdup(psz_variable);
if( newval.psz_string && *newval.psz_string )
......@@ -1581,8 +1580,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
}
/* Get the descriptive name of the variable */
var_Change( p_vout, psz_variable, VLC_VAR_GETTEXT,
&val_name, NULL );
var_Change( p_vout, psz_variable, VLC_VAR_GETTEXT, &val_name );
if( !val_name.psz_string ) val_name.psz_string = strdup(psz_variable);
msg_rc( "+----[ %s ]", val_name.psz_string );
......
......@@ -1399,7 +1399,7 @@
}
/* Get the descriptive name of the variable */
var_Change(p_object, psz_variable, VLC_VAR_GETTEXT, &text, NULL);
var_Change(p_object, psz_variable, VLC_VAR_GETTEXT, &text);
[mi setTitle: _NS(text.psz_string ? text.psz_string : psz_variable)];
if (i_type & VLC_VAR_HASCHOICE) {
......
......@@ -672,7 +672,7 @@ void ExtV4l2::Refresh( void )
vlc_value_t vartext;
const char *psz_var = text.p_list->p_values[i].psz_string;
if( var_Change( p_obj, psz_var, VLC_VAR_GETTEXT, &vartext, NULL ) )
if( var_Change( p_obj, psz_var, VLC_VAR_GETTEXT, &vartext ) )
continue;
QString name = qtr( vartext.psz_string );
......
......@@ -1299,7 +1299,7 @@ void VLCMenuBar::UpdateItem( QMenu *menu,
}
/* Get the descriptive name of the variable */
int i_ret = var_Change( p_object, psz_var, VLC_VAR_GETTEXT, &text, NULL );
int i_ret = var_Change( p_object, psz_var, VLC_VAR_GETTEXT, &text );
if( i_ret != VLC_SUCCESS )
{
text.psz_string = NULL;
......
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