mirror of
https://github.com/videolan/vlc.git
synced 2024-11-28 12:26:11 +08:00
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:
parent
a692c5a4e0
commit
154d9e74c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user