[vlc-devel] [PATCH 8/9] qt: store thumbnails inside mlAlbumTrack
jagannatharjun
guptaprince8832 at gmail.com
Tue Jun 2 17:17:32 CEST 2020
---
modules/gui/qt/medialibrary/mlalbumtrack.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/gui/qt/medialibrary/mlalbumtrack.cpp b/modules/gui/qt/medialibrary/mlalbumtrack.cpp
index 63bca77d90..56eff2a63a 100644
--- a/modules/gui/qt/medialibrary/mlalbumtrack.cpp
+++ b/modules/gui/qt/medialibrary/mlalbumtrack.cpp
@@ -52,6 +52,13 @@ MLAlbumTrack::MLAlbumTrack(vlc_medialibrary_t* _ml, const vlc_ml_media_t *_data,
break;
}
+ for( const vlc_ml_thumbnail_t& thumbnail: _data->thumbnails )
+ if( thumbnail.b_generated )
+ {
+ m_cover = QString::fromUtf8(thumbnail.psz_mrl);
+ break;
+ }
+
if ( _data->album_track.i_album_id != 0 )
{
ml_unique_ptr<vlc_ml_album_t> album(vlc_ml_get_album(_ml, _data->album_track.i_album_id));
--
2.25.1
More information about the vlc-devel
mailing list