[vlc-commits] android: ignore cancellation of foreign threads

Rémi Denis-Courmont git at videolan.org
Sun May 29 20:51:32 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 29 21:51:02 2016 +0300| [1ae58ad41e779483abad9276133d9c4dfbd07556] | committer: Rémi Denis-Courmont

android: ignore cancellation of foreign threads

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

 src/android/thread.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/android/thread.c b/src/android/thread.c
index 3dfe3e6..be18204 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -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)
     {



More information about the vlc-commits mailing list