Commit ed641fe3 authored by Rémi Duraffort's avatar Rémi Duraffort

rc: remove uneeded cast.

parent cf190075
...@@ -1735,8 +1735,8 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1735,8 +1735,8 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
} }
/* Get the descriptive name of the variable */ /* Get the descriptive name of the variable */
var_Change( (vlc_object_t *)p_aout, psz_variable, VLC_VAR_GETTEXT, var_Change( p_aout, psz_variable, VLC_VAR_GETTEXT,
&val_name, NULL ); &val_name, NULL );
if( !val_name.psz_string ) val_name.psz_string = strdup(psz_variable); if( !val_name.psz_string ) val_name.psz_string = strdup(psz_variable);
if ( !*newval.psz_string ) if ( !*newval.psz_string )
...@@ -1745,17 +1745,17 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1745,17 +1745,17 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t val, text; vlc_value_t val, text;
int i, i_value; int i, i_value;
if ( var_Get( (vlc_object_t *)p_aout, psz_variable, &val ) < 0 ) if ( var_Get( p_aout, psz_variable, &val ) < 0 )
{ {
vlc_object_release( (vlc_object_t *)p_aout ); vlc_object_release( p_aout );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
i_value = val.i_int; i_value = val.i_int;
if ( var_Change( (vlc_object_t *)p_aout, psz_variable, if ( var_Change( p_aout, psz_variable,
VLC_VAR_GETLIST, &val, &text ) < 0 ) VLC_VAR_GETLIST, &val, &text ) < 0 )
{ {
vlc_object_release( (vlc_object_t *)p_aout ); vlc_object_release( p_aout );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -1780,9 +1780,9 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1780,9 +1780,9 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t val; vlc_value_t val;
val.i_int = atoi( newval.psz_string ); val.i_int = atoi( newval.psz_string );
i_error = var_Set( (vlc_object_t *)p_aout, psz_variable, val ); i_error = var_Set( p_aout, psz_variable, val );
} }
vlc_object_release( (vlc_object_t *)p_aout ); vlc_object_release( p_aout );
return i_error; return i_error;
} }
......
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