mirror of https://code.videolan.org/videolan/vlc
qt: fix possible infinite loading in RoundImage
correctly handle error for custom generators
This commit is contained in:
parent
58a7aec106
commit
cc922574c6
|
@ -283,7 +283,11 @@ namespace
|
|||
auto textureFactory = std::unique_ptr<QQuickTextureFactory>(response->textureFactory());
|
||||
auto img = !textureFactory ? QImage {} : textureFactory->image();
|
||||
if (!textureFactory || img.isNull())
|
||||
{
|
||||
// source response failed, signal to parent
|
||||
emit finished();
|
||||
return;
|
||||
}
|
||||
|
||||
response->disconnect(this);
|
||||
response->deleteLater();
|
||||
|
|
Loading…
Reference in New Issue