Skip to content
Snippets Groups Projects
Commit a7735dfa authored by Sébastien Blin's avatar Sébastien Blin
Browse files

videoprovider: filter resize operations

Change-Id: I513acc54f1d8236b93832c02f9e658ec39f4db79
parent e0ed0ea2
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ VideoProvider::onRendererStarted(const QString& id) ...@@ -109,7 +109,7 @@ VideoProvider::onRendererStarted(const QString& id)
{ {
auto size = avModel_.getRendererSize(id); auto size = avModel_.getRendererSize(id);
// This slot is queued, the renderer may have been destroyed. // This slot is queued, the renderer may have been destroyed.
if (size.width() == 0 || size.height() == 0) { if (size.width() == 0 || size.height() == 0 || activeRenderers_[id] == size) {
return; return;
} }
auto pixelFormat = avModel_.useDirectRenderer() ? QVideoFrameFormat::Format_RGBA8888 auto pixelFormat = avModel_.useDirectRenderer() ? QVideoFrameFormat::Format_RGBA8888
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment