[vlc-commits] Allow negative rates

Paul Clark git at videolan.org
Mon Sep 2 17:48:49 CEST 2013


vlc/vlc-2.1 | branch: master | Paul Clark <paul at packetship.com> | Fri Aug 30 13:59:14 2013 +0100| [216fc147695d31fd8389c08fe78b6512d4541da3] | committer: Jean-Baptiste Kempf

Allow negative rates

Some inputs (e.g. RTSP) can provide negative rates (rewind) just fine

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 6ef4ee0f1ddda2f4797f4e895323362544e08703)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=216fc147695d31fd8389c08fe78b6512d4541da3
---

 lib/media_player.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index 376159f..01ab243 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1227,12 +1227,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 );



More information about the vlc-commits mailing list