[vlc-commits] Allow negative rates
Paul Clark
git at videolan.org
Mon Sep 2 17:35:13 CEST 2013
vlc | branch: master | Paul Clark <paul at packetship.com> | Fri Aug 30 13:59:14 2013 +0100| [6ef4ee0f1ddda2f4797f4e895323362544e08703] | committer: Rémi Denis-Courmont
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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ef4ee0f1ddda2f4797f4e895323362544e08703
---
lib/media_player.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index b4a7250..c23dd42 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -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 );
More information about the vlc-commits
mailing list