[Android] AndroidMediaLibrary: Fix potential missing return

Hugo Beauzée-Luyssen git at videolan.org
Wed Sep 27 13:47:08 CEST 2017


vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 27 13:47:20 2017 +0200| [a47ba602a3f1471ca2baa577ea713d82d0c262fa] | committer: Hugo Beauzée-Luyssen

AndroidMediaLibrary: Fix potential missing return

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

 medialibrary/jni/AndroidMediaLibrary.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 7c87b8353..37706dd4b 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -164,6 +164,7 @@ AndroidMediaLibrary::increasePlayCount(int64_t mediaId)
     auto media = p_ml->media(mediaId);
     if (media != nullptr)
         return media->increasePlayCount();
+    return false;
 }
 
 std::vector<medialibrary::MediaPtr>



More information about the Android mailing list