[vlc-commits] [Git][videolan/vlc][master] qt: fix warning when generating RoundImage with no source

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Apr 3 17:08:40 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
0768eef6 by Pierre Lamot at 2022-04-03T16:39:51+00:00
qt: fix warning when generating RoundImage with no source

fix: #26671

- - - - -


1 changed file:

- modules/gui/qt/widgets/native/roundimage.cpp


Changes:

=====================================
modules/gui/qt/widgets/native/roundimage.cpp
=====================================
@@ -303,6 +303,9 @@ QImage RoundImage::RoundImageGenerator::execute()
     if (width <= 0 || height <= 0)
         return {};
 
+    if (source.isEmpty())
+        return {};
+
     auto file = getReadable(source);
     if (!file || !file->isOpen())
         return {};



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0768eef6cee3e224614135a0daa8584c6feb94ae

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0768eef6cee3e224614135a0daa8584c6feb94ae
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list