[Android] jni/java_event_thread: fix SEGFAULT
Thomas Guillem
git at videolan.org
Thu Feb 5 14:14:47 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 5 14:14:06 2015 +0100| [a63d392df4a0082c196eb94956112ab28149cbba] | committer: Thomas Guillem
jni/java_event_thread: fix SEGFAULT
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a63d392df4a0082c196eb94956112ab28149cbba
---
libvlc/jni/java_event_thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libvlc/jni/java_event_thread.c b/libvlc/jni/java_event_thread.c
index d0868de..dc42de3 100644
--- a/libvlc/jni/java_event_thread.c
+++ b/libvlc/jni/java_event_thread.c
@@ -89,8 +89,8 @@ JavaEventThread_thread(void *data)
pthread_mutex_lock(&p_java_event_thread->lock);
- free(event_elm);
TAILQ_REMOVE(&p_java_event_thread->queue, event_elm, next);
+ free(event_elm);
pthread_cond_signal(&p_java_event_thread->cond);
}
end:
More information about the Android
mailing list