Remove unneed setting of val.b_bool before calling var_Set( p_input, "rate-{faster,slower}", val ) in the rc module. Those variables are of type VLC_VAR_VOID.

This commit is contained in:
Antoine Cellerier 2007-11-04 21:07:50 +00:00
parent a692c5a4e0
commit 154d9e74c5

View File

@ -1086,14 +1086,12 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
else if ( !strcmp( psz_cmd, "faster" ) )
{
val.b_bool = VLC_TRUE;
var_Set( p_input, "rate-faster", val );
vlc_object_release( p_input );
return VLC_SUCCESS;
}
else if ( !strcmp( psz_cmd, "slower" ) )
{
val.b_bool = VLC_TRUE;
var_Set( p_input, "rate-slower", val );
vlc_object_release( p_input );
return VLC_SUCCESS;