[Android] AndroidMediaLibrary: Remove write only flags

Hugo Beauzée-Luyssen git at videolan.org
Thu Feb 24 10:58:19 UTC 2022


vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 21 13:39:25 2022 +0100| [ede1a12b2ac5d7d4c3b6c54c5291de78418b2ea2] | committer: Nicolas Pomepuy

AndroidMediaLibrary: Remove write only flags

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

 medialibrary/jni/AndroidMediaLibrary.cpp | 2 --
 medialibrary/jni/AndroidMediaLibrary.h   | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index a54c83c16..d75c383b3 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -910,7 +910,6 @@ void AndroidMediaLibrary::onAlbumsDeleted( std::set<int64_t> )
 
 void AndroidMediaLibrary::onDiscoveryStarted()
 {
-    ++m_nbDiscovery;
     JNIEnv *env = getEnv();
     if (env == NULL) return;
     if (weak_thiz)
@@ -932,7 +931,6 @@ void AndroidMediaLibrary::onDiscoveryProgress( const std::string& entryPoint )
 
 void AndroidMediaLibrary::onDiscoveryCompleted()
 {
-    --m_nbDiscovery;
     JNIEnv *env = getEnv();
     if (env == NULL)
         return;
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index c751e17ff..7b833197d 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -197,6 +197,6 @@ private:
     medialibrary::IMediaLibrary* p_ml;
     std::shared_ptr<AndroidDeviceLister> p_lister;
     bool m_paused = false;
-    uint32_t m_nbDiscovery = 0, m_progress = 0, m_mediaAddedType = 0, m_mediaUpdatedType = 0;
+    uint32_t m_mediaAddedType = 0, m_mediaUpdatedType = 0;
 };
 #endif // ANDROIDMEDIALIBRARY_H



More information about the Android mailing list