François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
d2e1a77e by Prince Gupta at 2022-04-22T19:55:03+00:00
qt: fix blank thumbnails
- - - - -
1 changed file:
- modules/gui/qt/util/covergenerator.cpp
Changes:
=====================================
modules/gui/qt/util/covergenerator.cpp
=====================================
@@ -271,8 +271,8 @@ void CoverGenerator::draw(QPainter & painter,
void CoverGenerator::drawImage(QPainter & painter, const QString & fileName,
const QRect & target)
{
//QFile expect the :/ instead of qrc:// for resources files
- QString adaptedFilename = QQmlFile::urlToLocalFileOrQrc(fileName);
-
+ const QUrl fileURL {fileName};
+ const QString adaptedFilename = fileURL.scheme().isEmpty() ? fileName :
QQmlFile::urlToLocalFileOrQrc(fileURL);
QFile file(adaptedFilename);
if (file.open(QIODevice::ReadOnly) == false)
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/d2e1a77ec697c690713d2b273c349ac8bc7e9013
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/d2e1a77ec697c690713d2b273c349ac8bc7e9013
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits