[Android] Medialibrary: Match new API changes

Geoffrey Métais git at videolan.org
Tue May 21 09:56:59 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 21 09:56:30 2019 +0200| [5df86c6b468e840beea673f4a7f1f5a8f8e3c7d3] | committer: Geoffrey Métais

Medialibrary: Match new API changes

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

 medialibrary/jni/utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/medialibrary/jni/utils.cpp b/medialibrary/jni/utils.cpp
index abdb980fd..57117a39a 100644
--- a/medialibrary/jni/utils.cpp
+++ b/medialibrary/jni/utils.cpp
@@ -68,7 +68,7 @@ mediaToMediaWrapper(JNIEnv* env, fields *fields, medialibrary::MediaPtr const& m
     } catch(const medialibrary::fs::DeviceRemovedException&) {
         return nullptr;
     }
-    thumbnail = mediaPtr->thumbnail().empty() ? NULL : env->NewStringUTF(mediaPtr->thumbnail().c_str());
+    thumbnail = mediaPtr->thumbnailMrl().empty() ? NULL : env->NewStringUTF(mediaPtr->thumbnailMrl().c_str());
     std::vector<medialibrary::VideoTrackPtr> videoTracks = mediaPtr->videoTracks()->all();
     bool hasVideoTracks = !videoTracks.empty();
     unsigned int width = hasVideoTracks ? videoTracks.at(0)->width() : 0;



More information about the Android mailing list