[Android] libVLC: try to load iomx libs only after gingerbread
Thomas Guillem
git at videolan.org
Tue Jan 20 18:01:22 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan 20 17:52:41 2015 +0100| [b9a4641712784f387638f96e513c17a595e746e2] | committer: Thomas Guillem
libVLC: try to load iomx libs only after gingerbread
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b9a4641712784f387638f96e513c17a595e746e2
---
libvlc/src/org/videolan/libvlc/LibVLC.java | 33 ++++++++++++++--------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/LibVLC.java b/libvlc/src/org/videolan/libvlc/LibVLC.java
index 44d5648..e7284ea 100644
--- a/libvlc/src/org/videolan/libvlc/LibVLC.java
+++ b/libvlc/src/org/videolan/libvlc/LibVLC.java
@@ -129,24 +129,25 @@ public class LibVLC {
} catch (Throwable t) {
Log.w(TAG, "Unable to load the anw library: " + t);
}
- }
- try {
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1)
- System.loadLibrary("iomx.10");
- else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.HONEYCOMB_MR2)
- System.loadLibrary("iomx.13");
- else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR1)
- System.loadLibrary("iomx.14");
- else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR2)
- System.loadLibrary("iomx.18");
- else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT)
- System.loadLibrary("iomx.19");
- } catch (Throwable t) {
- // No need to warn if it isn't found, when we intentionally don't build these except for debug
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1)
- Log.w(TAG, "Unable to load the iomx library: " + t);
+ try {
+ if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1)
+ System.loadLibrary("iomx.10");
+ else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.HONEYCOMB_MR2)
+ System.loadLibrary("iomx.13");
+ else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR1)
+ System.loadLibrary("iomx.14");
+ else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN_MR2)
+ System.loadLibrary("iomx.18");
+ else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT)
+ System.loadLibrary("iomx.19");
+ } catch (Throwable t) {
+ // No need to warn if it isn't found, when we intentionally don't build these except for debug
+ if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1)
+ Log.w(TAG, "Unable to load the iomx library: " + t);
+ }
}
+
try {
System.loadLibrary("vlcjni");
} catch (UnsatisfiedLinkError ule) {
More information about the Android
mailing list