[Android] Make LibVLCUtil.searchLibrary not use a Context
Jean-Baptiste Kempf
git at videolan.org
Wed May 27 14:29:03 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 27 13:37:07 2015 +0200| [8858f4635946b2336f92ebe68941bda9e8b4c96d] | committer: Jean-Baptiste Kempf
Make LibVLCUtil.searchLibrary not use a Context
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8858f4635946b2336f92ebe68941bda9e8b4c96d
---
libvlc/src/org/videolan/libvlc/LibVlcUtil.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/LibVlcUtil.java b/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
index 09a72a7..bc14da8 100644
--- a/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
@@ -95,7 +95,7 @@ public class LibVlcUtil {
// If already checked return cached result
if (errorMsg != null || isCompatible) return isCompatible;
- final File lib = searchLibrary(context);
+ final File lib = searchLibrary(context.getApplicationInfo());
if (lib == null)
return true;
@@ -343,11 +343,9 @@ public class LibVlcUtil {
boolean att_fpu;
}
- private static File searchLibrary(Context context) {
+ private static File searchLibrary(ApplicationInfo applicationInfo) {
// Search for library path
String[] libraryPaths = null;
- final ApplicationInfo applicationInfo = context.getApplicationInfo();
-
if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
final String property = System.getProperty("java.library.path");
libraryPaths = property.split(":");
More information about the Android
mailing list