[Android] Fix history media title
Geoffrey Métais
git at videolan.org
Mon Feb 13 14:51:25 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 13 14:51:02 2017 +0100| [e43c4da4dc0a50820275eb6ae47759aa323e91d3] | committer: Geoffrey Métais
Fix history media title
> https://code.videolan.org/videolan/vlc-android/commit/e43c4da4dc0a50820275eb6ae47759aa323e91d3
---
medialibrary/jni/AndroidMediaLibrary.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 24c5a8a..1d57b47 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -165,7 +165,7 @@ AndroidMediaLibrary::lastMediaPlayed()
}
bool
-AndroidMediaLibrary::addToHistory( const std::string& mrl, const std::string& )
+AndroidMediaLibrary::addToHistory( const std::string& mrl, const std::string& title)
{
auto media = p_ml->media( mrl );
if ( media == nullptr )
@@ -174,6 +174,7 @@ AndroidMediaLibrary::addToHistory( const std::string& mrl, const std::string& )
if ( media == nullptr )
return false;
}
+ media->setTitle(title);
return p_ml->addToStreamHistory( media );
}
More information about the Android
mailing list