[Android] AML: Use new API to provide logging parameters
Hugo Beauzée-Luyssen
git at videolan.org
Tue May 17 13:30:51 UTC 2022
vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri May 13 12:42:09 2022 +0200| [2bed479b6942465e33d09b3b8b7f6da6392ed309] | committer: Duncan McNamara
AML: Use new API to provide logging parameters
> https://code.videolan.org/videolan/vlc-android/commit/2bed479b6942465e33d09b3b8b7f6da6392ed309
---
medialibrary/jni/AndroidMediaLibrary.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index d75c383b3..e688355b6 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -31,10 +31,10 @@ AndroidMediaLibrary::AndroidMediaLibrary(JavaVM *vm, fields *ref_fields, jobject
myVm = vm;
p_lister = std::make_shared<AndroidDeviceLister>();
medialibrary::SetupConfig config;
+ config.logger = std::make_shared<AndroidMediaLibraryLogger>();
+ config.logLevel = medialibrary::LogLevel::Debug;
config.deviceListers["file://"] = p_lister;
p_ml = NewMediaLibrary( dbPath, mlFolder, false, &config);
- p_ml->setLogger( new AndroidMediaLibraryLogger );
- p_ml->setVerbosity(medialibrary::LogLevel::Debug);
pthread_once(&key_once, key_init);
JNIEnv *env = getEnv();
if (env == NULL) return;
More information about the Android
mailing list