[Android] Don't call reload if ML is not yet ready
Geoffrey Métais
git at videolan.org
Fri Dec 23 13:36:58 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 23 13:33:23 2016 +0100| [6158bf81b29ed2f5f52d8abe10b9009bfe5f79aa] | committer: Geoffrey Métais
Don't call reload if ML is not yet ready
> https://code.videolan.org/videolan/vlc-android/commit/6158bf81b29ed2f5f52d8abe10b9009bfe5f79aa
---
medialibrary/src/org/videolan/medialibrary/Medialibrary.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
index 5958cfd..ab4e3e7 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -189,11 +189,13 @@ public class Medialibrary {
}
public void reload() {
- nativeReload();
+ if (mIsInitiated)
+ nativeReload();
}
public void reload(String entryPoint) {
- nativeReload(entryPoint);
+ if (mIsInitiated)
+ nativeReload(entryPoint);
}
public MediaWrapper[] lastMediaPlayed() {
More information about the Android
mailing list