2012/1/3 Edward Wang <span dir="ltr"><<a href="mailto:edward.c.wang@compdigitec.com">edward.c.wang@compdigitec.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Patch for vlc-ports/android.git to add another pthread patch on Android to ensure compatibility with Android 2.1<br></blockquote><div><br></div><div>Somewhat offtopic, but is there some reason for supporting Android 2.1?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
Edward Wang<br>
<br>
---<br>
...-pthread-conditional-attribute-workaround.patch | 39 ++++++++++++++++++++<br>
1 files changed, 39 insertions(+), 0 deletions(-)<br>
create mode 100644 patches/0008-Add-pthread-conditional-attribute-workaround.patch<br>
<br>
diff --git a/patches/0008-Add-pthread-conditional-attribute-workaround.patch b/patches/0008-Add-pthread-conditional-attribute-workaround.patch<br>
new file mode 100644<br>
index 0000000..0a27d58<br>
--- /dev/null<br>
+++ b/patches/0008-Add-pthread-conditional-attribute-workaround.patch<br>
@@ -0,0 +1,39 @@<br>
+From 2c874b63873e7cad67776b6c9a10906248f72140 Mon Sep 17 00:00:00 2001<br>
+From: Edward Wang <<a href="mailto:edward.c.wang@compdigitec.com">edward.c.wang@compdigitec.com</a>><br>
+Date: Mon, 2 Jan 2012 21:24:18 -0500<br>
+Subject: [PATCH] Add pthread conditional attribute workaround<br>
+<br>
+---<br>
+ src/posix/thread.c | 8 ++++++++<br>
+ 1 files changed, 8 insertions(+), 0 deletions(-)<br>
+<br>
+diff --git a/src/posix/thread.c b/src/posix/thread.c<br>
+index dd5b2fd..8edd56d 100644<br>
+--- a/src/posix/thread.c<br>
++++ b/src/posix/thread.c<br>
+@@ -358,14 +358,22 @@ void vlc_cond_init (vlc_cond_t *p_condvar)<br>
+ pthread_condattr_t attr;<br>
+<br>
+ vlc_clock_setup ();<br>
++#ifndef __ANDROID__<br>
+ if (unlikely(pthread_condattr_init (&attr)))<br>
+ abort ();<br>
++#endif<br>
+ #if (_POSIX_CLOCK_SELECTION > 0)<br>
+ pthread_condattr_setclock (&attr, vlc_clock_id);<br>
+ #endif<br>
++#ifdef __ANDROID__<br>
++ if (unlikely(pthread_cond_init (p_condvar, NULL)))<br>
++#else<br>
+ if (unlikely(pthread_cond_init (p_condvar, &attr)))<br>
++#endif<br>
+ abort ();<br>
++#ifndef __ANDROID__<br>
+ pthread_condattr_destroy (&attr);<br>
++#endif<br>
+ }<br>
+<br>
+ /**<br>
+--<br>
+1.7.5.4<br>
+<br>
<font color="#888888">--<br>
1.7.5.4<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></blockquote></div><br>