[Android] [PATCH 2/2] Update surface object when it's destroyed and recreated.

Paulo Vitor Magacho da Silva pvmagacho at gmail.com
Fri Dec 5 02:15:40 CET 2014


---
 java-libs/WheelView/.classpath | 4 ++--
 libvlc/jni/vout.c              | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/java-libs/WheelView/.classpath b/java-libs/WheelView/.classpath
index dec02b3..5176974 100644
--- a/java-libs/WheelView/.classpath
+++ b/java-libs/WheelView/.classpath
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="src" path="gen"/>
 	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
 	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="gen"/>
 	<classpathentry kind="output" path="bin/classes"/>
 </classpath>
diff --git a/libvlc/jni/vout.c b/libvlc/jni/vout.c
index 04c933c..6362f0c 100644
--- a/libvlc/jni/vout.c
+++ b/libvlc/jni/vout.c
@@ -53,6 +53,11 @@ void jni_UnlockAndroidSurface() {
     pthread_mutex_unlock(&vout_android_lock);
 }
 
+bool jni_LockAndGetIsSurfaceAttached() {
+    pthread_mutex_unlock(&vout_android_lock);
+    return vout_android_java_surf != NULL;
+}
+
 void jni_EventHardwareAccelerationError()
 {
     JNIEnv *env;
-- 
1.9.3 (Apple Git-50)



More information about the Android mailing list