[vlc-commits] fix off-by-one error

Christoph Pfister git at videolan.org
Wed Jun 27 22:57:57 CEST 2012


vlc | branch: master | Christoph Pfister <christophpfister at gmail.com> | Wed Jun 27 22:56:26 2012 +0200| [4ec6d79cfbbf17c8acac765ebc16210949a284c4] | committer: Rafaël Carré

fix off-by-one error

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ec6d79cfbbf17c8acac765ebc16210949a284c4
---

 lib/media_player.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index b426637..cfd9f63 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1295,7 +1295,7 @@ void libvlc_media_player_navigate( libvlc_media_player_t* p_mi,
 {
     input_thread_t *p_input_thread;
 
-    if ( navigate > libvlc_navigate_to_action_size)
+    if ( navigate >= libvlc_navigate_to_action_size)
       return;
 
     p_input_thread = libvlc_get_input_thread ( p_mi );



More information about the vlc-commits mailing list