Skip to content
Snippets Groups Projects

qt: fix warning when generating RoundImage with no source

Merged Pierre Lamot requested to merge chub/vlc:qt/fixup-no-file into master
All threads resolved!
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -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 {};
Loading