[Android] Send parsing status right before onReloadCompleted
Geoffrey Métais
git at videolan.org
Wed Feb 15 16:10:51 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb 15 12:11:21 2017 +0100| [7f79170ea7b06cc290fd3be8979f16b8b3e0d3f0] | committer: Geoffrey Métais
Send parsing status right before onReloadCompleted
> https://code.videolan.org/videolan/vlc-android/commit/7f79170ea7b06cc290fd3be8979f16b8b3e0d3f0
---
medialibrary/jni/AndroidMediaLibrary.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index e184118..ce5ce89 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -638,9 +638,12 @@ void AndroidMediaLibrary::onReloadCompleted( const std::string& entryPoint )
JNIEnv *env = getEnv();
if (env == NULL)
return;
+ discoveryEnded = true;
jstring ep = env->NewStringUTF(entryPoint.c_str());
jobject thiz = getWeakReference(env);
if (thiz) {
+ if (m_progress)
+ env->CallVoidMethod(thiz, p_fields->MediaLibrary.onParsingStatsUpdatedId, m_progress);
env->CallVoidMethod(thiz, p_fields->MediaLibrary.onReloadCompletedId, ep);
if (weak_compat)
env->DeleteLocalRef(thiz);
More information about the Android
mailing list