Commit bf8c4fd1 authored by Jean-Paul Saman's avatar Jean-Paul Saman

libvlc_media_player_set_rate: Allow for changing playout rate.

This fixes a regression introduced in commit: 75adef44
parent f207e101
......@@ -1097,15 +1097,12 @@ void libvlc_media_player_set_rate(
vlc_value_t val;
bool b_can_rewind;
if( rate != 0 )
RAISEVOID( "Rate value is invalid" );
p_input_thread = libvlc_get_input_thread ( p_mi, p_e);
p_input_thread = libvlc_get_input_thread ( p_mi, p_e );
if( !p_input_thread )
return;
b_can_rewind = var_GetBool( p_input_thread, "can-rewind" );
if( (rate < 0) && !b_can_rewind )
if( (rate < 0.0) && !b_can_rewind )
{
vlc_object_release( p_input_thread );
libvlc_exception_raise( p_e, "Rate value is invalid" );
......
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