[vlc-commits] Android: compilation fixes

Rémi Denis-Courmont git at videolan.org
Sat Oct 13 13:39:55 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 13 14:39:32 2012 +0300| [0d5c56e06c27da57d0e3af74bd65286ed40b64dc] | committer: Rémi Denis-Courmont

Android: compilation fixes

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

 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 46e0160..64aa5a4 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -323,7 +323,7 @@ static int vlc_clone_attr (vlc_thread_t *th, void *(*entry) (void *),
     pthread_attr_setdetachstate (&attr, detach ? PTHREAD_CREATE_DETACHED
                                                : PTHREAD_CREATE_JOINABLE);
 
-    ret = pthread_create (&thread->thread, attr,
+    ret = pthread_create (&thread->thread, &attr,
                           detach ? detached_thread : joinable_thread, thread);
     pthread_attr_destroy (&attr);
 
@@ -384,7 +384,7 @@ int vlc_savecancel (void)
     if (!thread) /* not created by VLC, can't be cancelled */
         return true;
 
-    int oldstate = vlc_atomic_get(&thread->killable);
+    int oldstate = thread->killable;
     thread->killable = false;
     return oldstate;
 }



More information about the vlc-commits mailing list