[vlc-commits] rc: remove uneeded cast.
Rémi Duraffort
git at videolan.org
Sat Jun 18 15:31:27 CEST 2011
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jun 18 15:26:15 2011 +0200| [ed641fe39e2c84545acf7f2e7933ee89dcefb2f8] | committer: Rémi Duraffort
rc: remove uneeded cast.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed641fe39e2c84545acf7f2e7933ee89dcefb2f8
---
modules/control/rc.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/control/rc.c b/modules/control/rc.c
index d91433c..462480c 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1735,8 +1735,8 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
}
/* Get the descriptive name of the variable */
- var_Change( (vlc_object_t *)p_aout, psz_variable, VLC_VAR_GETTEXT,
- &val_name, NULL );
+ var_Change( p_aout, psz_variable, VLC_VAR_GETTEXT,
+ &val_name, NULL );
if( !val_name.psz_string ) val_name.psz_string = strdup(psz_variable);
if ( !*newval.psz_string )
@@ -1745,17 +1745,17 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t val, text;
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;
}
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_object_release( (vlc_object_t *)p_aout );
+ vlc_object_release( p_aout );
return VLC_EGENERIC;
}
@@ -1780,9 +1780,9 @@ static int AudioConfig( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t val;
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;
}
More information about the vlc-commits
mailing list