[Android] Thumbnailer: fix typo

Sébastien Toque git at videolan.org
Sat Nov 10 18:36:50 CET 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sat Nov 10 18:36:10 2012 +0100| [f3dce157a9c779a9ed7b19e3bc386013234958e9] | committer: Rafaël Carré

Thumbnailer: fix typo

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

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f3dce157a9c779a9ed7b19e3bc386013234958e9
---

 vlc-android/jni/thumbnailer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/jni/thumbnailer.c b/vlc-android/jni/thumbnailer.c
index 05bebba..b032a3e 100644
--- a/vlc-android/jni/thumbnailer.c
+++ b/vlc-android/jni/thumbnailer.c
@@ -257,7 +257,7 @@ jbyteArray Java_org_videolan_vlc_LibVLC_getThumbnail(JNIEnv *env, jobject thiz,
     int loops = 100;
     for (;;) {
         float pos = libvlc_media_player_get_position(mp);
-        if (pos < THUMBNAIL_POSITION || !loops--)
+        if (pos >= THUMBNAIL_POSITION || !loops--)
             break;
         usleep(50000);
     }



More information about the Android mailing list