[Android] Medialibrary: Match new API
Geoffrey Métais
git at videolan.org
Wed Dec 5 11:29:54 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 4 17:13:01 2018 +0100| [7337725fdccfdef751ade4f76b1699aa3e8acfb0] | committer: Geoffrey Métais
Medialibrary: Match new API
> https://code.videolan.org/videolan/vlc-android/commit/7337725fdccfdef751ade4f76b1699aa3e8acfb0
---
medialibrary/jni/AndroidMediaLibrary.cpp | 4 ++--
medialibrary/jni/AndroidMediaLibrary.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 6ddca9829..c613e6d07 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -465,9 +465,9 @@ AndroidMediaLibrary::PlaylistDelete( int64_t playlistId )
}
medialibrary::Query<medialibrary::IFolder>
-AndroidMediaLibrary::folders(const medialibrary::QueryParameters* params )
+AndroidMediaLibrary::folders(const medialibrary::QueryParameters* params, medialibrary::IMedia::Type type)
{
- return p_ml->folders(params);
+ return p_ml->folders(type, params);
}
medialibrary::Query<medialibrary::IMedia>
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index 24578e2c0..035c2c0a9 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -93,7 +93,7 @@ public:
medialibrary::Query<medialibrary::IMedia> mediaFromPlaylist( int64_t playlistId );
// Folders
medialibrary::Query<medialibrary::IMedia> mediaFromFolder(int64_t folderId, medialibrary::IMedia::Type type, const medialibrary::QueryParameters* params = nullptr );
- medialibrary::Query<medialibrary::IFolder> folders(const medialibrary::QueryParameters* params = nullptr );
+ medialibrary::Query<medialibrary::IFolder> folders(const medialibrary::QueryParameters* params = nullptr, medialibrary::IMedia::Type type = medialibrary::IMedia::Type::Unknown );
medialibrary::Query<medialibrary::IFolder> subFolders(int64_t folderId, const medialibrary::QueryParameters* params = nullptr );
//PLaylists
bool playlistAppend(int64_t playlistId, int64_t mediaId);
More information about the Android
mailing list