android: ignore cancellation of foreign threads
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 29 May 2016 18:51:02 +0000 (21:51 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 29 May 2016 18:51:28 +0000 (21:51 +0300)
src/android/thread.c

index 3dfe3e6..be18204 100644 (file)
@@ -358,6 +358,9 @@ void vlc_control_cancel(int cmd, ...)
     vlc_thread_t th = vlc_thread_self();
     va_list ap;
 
+    if (th == NULL)
+        return;
+
     va_start(ap, cmd);
     switch (cmd)
     {