diff --git a/patches/0001-android-threads-support.patch b/patches/0001-android-threads-support.patch index 8fded928066ed72d9ea2557d96f24562223669ed..1c5421b5906fa26ac9c11e486d0502cf02affd16 100644 --- a/patches/0001-android-threads-support.patch +++ b/patches/0001-android-threads-support.patch @@ -522,7 +522,7 @@ index a7a4873..598c692 100644 + vlc_testcancel(); + for (;;) { + struct timespec t = { 0, 10 * 1000 * 1000 }; -+ if (t.tv_nsec < ts.tv_nsec) ++ if (ts.tv_sec <= 0 && t.tv_nsec > ts.tv_nsec) + t.tv_nsec = ts.tv_nsec; + while (nanosleep (&t, &t) == -1) { + vlc_testcancel();