diff --git a/libvlc/jni/thumbnailer.c b/libvlc/jni/thumbnailer.c index ee4b4425ded285f905490fdf2de65241bb52ad23..155c3f0a933c3189fd6bd740f6200ab535023661 100644 --- a/libvlc/jni/thumbnailer.c +++ b/libvlc/jni/thumbnailer.c @@ -204,7 +204,7 @@ static void thumbnailer_display(void *opaque, void *picture) /* If we have already received a thumbnail, or we are still seeking, * we skip this frame. */ pthread_mutex_lock(&sys->doneMutex); - if ((sys->state & THUMB_SEEKED|THUMB_VOUT) != (THUMB_SEEKED|THUMB_VOUT)) + if ((sys->state & (THUMB_SEEKED|THUMB_VOUT)) != (THUMB_SEEKED|THUMB_VOUT)) { pthread_mutex_unlock(&sys->doneMutex); return;