[vlc-devel] [PATCH 1/4] android: inline vlc_thread_self() internally

RĂ©mi Denis-Courmont remi at remlab.net
Mon Feb 17 21:56:06 CET 2020


---
 src/android/thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/android/thread.c b/src/android/thread.c
index 626e20b8e2..d3e8b25c47 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -330,7 +330,7 @@ void vlc_testcancel (void)
 
 void vlc_cancel_addr_set(atomic_uint *addr)
 {
-    vlc_thread_t th = vlc_thread_self();
+    vlc_thread_t th = thread;
     if (th == NULL)
         return;
 
@@ -342,7 +342,7 @@ void vlc_cancel_addr_set(atomic_uint *addr)
 
 void vlc_cancel_addr_clear(atomic_uint *addr)
 {
-    vlc_thread_t th = vlc_thread_self();
+    vlc_thread_t th = thread;
     if (th == NULL)
         return;
 
-- 
2.25.0



More information about the vlc-devel mailing list