1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

qt: fix warning when generating RoundImage with no source

fix: #26671
This commit is contained in:
Pierre Lamot 2022-03-31 15:51:36 +02:00 committed by Jean-Baptiste Kempf
parent 5143536264
commit 0768eef6ce

View File

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