[Android] Fix arguments for playlist paged tracks

Geoffrey Métais git at videolan.org
Thu Sep 13 12:03:32 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 13 11:56:03 2018 +0200| [0fe10208fc48205da59514262975f9b9156ccf84] | committer: Geoffrey Métais

Fix arguments for playlist paged tracks

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

 medialibrary/jni/medialibrary.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/medialibrary/jni/medialibrary.cpp b/medialibrary/jni/medialibrary.cpp
index 61f2f9509..cb34dc49f 100644
--- a/medialibrary/jni/medialibrary.cpp
+++ b/medialibrary/jni/medialibrary.cpp
@@ -1450,13 +1450,9 @@ getMediaFromPlaylist(JNIEnv* env, jobject thiz, jobject medialibrary, jlong id)
 }
 
 jobjectArray
-getPagedMediaFromPlaylist(JNIEnv* env, jobject thiz, jobject medialibrary, jlong id, jint sortingCriteria, jboolean desc, jint nbItems,  jint offset)
+getPagedMediaFromPlaylist(JNIEnv* env, jobject thiz, jobject medialibrary, jlong id, jint nbItems,  jint offset)
 {
     AndroidMediaLibrary *aml = MediaLibrary_getInstance(env, medialibrary);
-    medialibrary::QueryParameters params {
-        static_cast<medialibrary::SortingCriteria>(sortingCriteria),
-        static_cast<bool>( desc )
-    };
     const auto query = aml->mediaFromPlaylist(id);
     std::vector<medialibrary::MediaPtr> mediaList = nbItems != 0 ? query->items(nbItems, offset) : query->all();
     jobjectArray mediaRefs = (jobjectArray) env->NewObjectArray(mediaList.size(), ml_fields.MediaWrapper.clazz, NULL);



More information about the Android mailing list