[vlc-commits] [Git][videolan/vlc][master] 2 commits: qt/covergenerator: correctly convert url
Jean-Baptiste Kempf
gitlab at videolan.org
Mon Jun 14 14:34:28 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
bda42378 by Prince Gupta at 2021-06-14T14:20:57+00:00
qt/covergenerator: correctly convert url
fixes custom covers don't have any valid art on windows
- - - - -
1da52b4e by Prince Gupta at 2021-06-14T14:20:57+00:00
qt/covergenerator: by default generate cover in smooth scaling
covers generated are persistently cached, no need to save some extra
processing which will be only done once across many sessions
- - - - -
1 changed file:
- modules/gui/qt/util/covergenerator.cpp
Changes:
=====================================
modules/gui/qt/util/covergenerator.cpp
=====================================
@@ -53,7 +53,7 @@ CoverGenerator::CoverGenerator(vlc_medialibrary_t * ml, const MLItemId & itemId,
, m_countX(COVERGENERATOR_COUNT)
, m_countY(COVERGENERATOR_COUNT)
, m_split(Divide)
- , m_smooth(false)
+ , m_smooth(true)
, m_blur(0)
, m_default(COVERGENERATOR_DEFAULT) {}
@@ -387,7 +387,7 @@ QStringList CoverGenerator::getGenre(int count, int64_t id) const
if (url.isLocalFile() == false)
continue;
- thumbnails.append(url.path());
+ thumbnails.append(url.toLocalFile());
if (thumbnails.count() == count)
return thumbnails;
@@ -420,7 +420,7 @@ QStringList CoverGenerator::getMedias(int count, int64_t id, vlc_ml_parent_type
if (url.isLocalFile() == false)
continue;
- thumbnails.append(url.path());
+ thumbnails.append(url.toLocalFile());
if (thumbnails.count() == count)
return thumbnails;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/a5a69e60488b12989f596bcadf1e8f78ce882d17...1da52b4e7e4ee00262463385a501927d40bf8887
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/a5a69e60488b12989f596bcadf1e8f78ce882d17...1da52b4e7e4ee00262463385a501927d40bf8887
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list