[Android] Remove all unavailable entryPoints
Geoffrey Métais
git at videolan.org
Fri Jan 6 19:12:40 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 6 19:12:13 2017 +0100| [3750080fd5e271a22adf2f17a682a6f5631f2eee] | committer: Geoffrey Métais
Remove all unavailable entryPoints
> https://code.videolan.org/videolan/vlc-android/commit/3750080fd5e271a22adf2f17a682a6f5631f2eee
---
medialibrary/jni/medialibrary.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/medialibrary/jni/medialibrary.cpp b/medialibrary/jni/medialibrary.cpp
index ba7a8a2..2889116 100644
--- a/medialibrary/jni/medialibrary.cpp
+++ b/medialibrary/jni/medialibrary.cpp
@@ -106,7 +106,7 @@ entryPoints(JNIEnv* env, jobject thiz)
{
AndroidMediaLibrary *aml = MediaLibrary_getInstance(env, thiz);
std::vector<medialibrary::FolderPtr> entryPoints = aml->entryPoints();
- entryPoints.erase(std::remove_if( begin( entryPoints ), end( entryPoints ), []( const medialibrary::FolderPtr f ) { return f->isPresent() == false; } ));
+ entryPoints.erase(std::remove_if( begin( entryPoints ), end( entryPoints ), []( const medialibrary::FolderPtr f ) { return f->isPresent() == false; } ), end( entryPoints ));
jobjectArray mediaRefs = (jobjectArray) env->NewObjectArray(entryPoints.size(), env->FindClass("java/lang/String"), NULL);
int index = -1;
for(medialibrary::FolderPtr const& entrypoint : entryPoints) {
More information about the Android
mailing list