Commit 6ef4ee0f authored by Paul Clark's avatar Paul Clark Committed by Rémi Denis-Courmont

Allow negative rates

Some inputs (e.g. RTSP) can provide negative rates (rewind) just fine
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 92b27c22
...@@ -1232,12 +1232,6 @@ int libvlc_media_player_will_play( libvlc_media_player_t *p_mi ) ...@@ -1232,12 +1232,6 @@ int libvlc_media_player_will_play( libvlc_media_player_t *p_mi )
int libvlc_media_player_set_rate( libvlc_media_player_t *p_mi, float rate ) int libvlc_media_player_set_rate( libvlc_media_player_t *p_mi, float rate )
{ {
if (rate < 0.)
{
libvlc_printerr ("Playing backward not supported");
return -1;
}
var_SetFloat (p_mi, "rate", rate); var_SetFloat (p_mi, "rate", rate);
input_thread_t *p_input_thread = libvlc_get_input_thread ( p_mi ); input_thread_t *p_input_thread = libvlc_get_input_thread ( p_mi );
......
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