[Android] VLCInstance: create sLibVLC if null
Thomas Guillem
git at videolan.org
Fri May 29 10:10:29 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 29 10:10:15 2015 +0200| [57ed1e4318c4fd634f4971dc9d9774f47e6c7e24] | committer: Thomas Guillem
VLCInstance: create sLibVLC if null
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=57ed1e4318c4fd634f4971dc9d9774f47e6c7e24
---
vlc-android/src/org/videolan/vlc/util/VLCInstance.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/VLCInstance.java b/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
index 6f2451f..0663e66 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
@@ -67,8 +67,11 @@ public class VLCInstance {
}
public static synchronized MediaPlayer getMainMediaPlayer() {
- if (sMediaPlayer == null)
+ if (sMediaPlayer == null) {
+ if (sLibVLC == null)
+ get();
sMediaPlayer = new MediaPlayer(sLibVLC);
+ }
return sMediaPlayer;
}
More information about the Android
mailing list