]> git.sesse.net Git - vlc/commitdiff
Allow negative rates
authorPaul Clark <paul@packetship.com>
Fri, 30 Aug 2013 12:59:14 +0000 (13:59 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 2 Sep 2013 15:35:08 +0000 (18:35 +0300)
Some inputs (e.g. RTSP) can provide negative rates (rewind) just fine

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
lib/media_player.c

index b4a72504d4816c7f77f08fa3a75644729a459286..c23dd42aa33b0de665fb546fb31ab3a534ff3a07 100644 (file)
@@ -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 )
 {
-    if (rate < 0.)
-    {
-        libvlc_printerr ("Playing backward not supported");
-        return -1;
-    }
-
     var_SetFloat (p_mi, "rate", rate);
 
     input_thread_t *p_input_thread = libvlc_get_input_thread ( p_mi );