[Android] update to match Medialib api

Duncan McNamara git at videolan.org
Tue Aug 14 13:18:00 CEST 2018


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Tue Aug 14 13:12:37 2018 +0200| [ddaeace282a742d709cf1e2a3eded872598795f9] | committer: Geoffrey Métais

update to match Medialib api

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/ddaeace282a742d709cf1e2a3eded872598795f9
---

 medialibrary/jni/AndroidMediaLibrary.cpp | 4 ++--
 medialibrary/jni/AndroidMediaLibrary.h   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 45c645035..a3471ae07 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -618,7 +618,7 @@ void AndroidMediaLibrary::onDiscoveryProgress( const std::string& entryPoint )
 
 }
 
-void AndroidMediaLibrary::onDiscoveryCompleted( const std::string& entryPoint )
+void AndroidMediaLibrary::onDiscoveryCompleted( const std::string& entryPoint, bool success )
 {
     --m_nbDiscovery;
     JNIEnv *env = getEnv();
@@ -646,7 +646,7 @@ void AndroidMediaLibrary::onReloadStarted( const std::string& entryPoint )
     env->DeleteLocalRef(ep);
 }
 
-void AndroidMediaLibrary::onReloadCompleted( const std::string& entryPoint )
+void AndroidMediaLibrary::onReloadCompleted( const std::string& entryPoint, bool success )
 {
     JNIEnv *env = getEnv();
     if (env == NULL) return;
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index 398eee166..3dd731234 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -111,9 +111,9 @@ public:
 
     void onDiscoveryStarted( const std::string& entryPoint );
     void onDiscoveryProgress( const std::string& entryPoint );
-    void onDiscoveryCompleted( const std::string& entryPoint );
+    void onDiscoveryCompleted( const std::string& entryPoint, bool success );
     void onReloadStarted( const std::string& entryPoint );
-    void onReloadCompleted( const std::string& entryPoint );
+    void onReloadCompleted( const std::string& entryPoint, bool success );
     void onEntryPointBanned( const std::string& entryPoint, bool success );
     void onEntryPointUnbanned( const std::string& entryPoint, bool success );
     void onEntryPointRemoved( const std::string& entryPoint, bool success );



More information about the Android mailing list