From a7735dfa7d5bf099dde99283ba5151f3f3633310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Tue, 31 May 2022 03:13:33 -0400 Subject: [PATCH] videoprovider: filter resize operations Change-Id: I513acc54f1d8236b93832c02f9e658ec39f4db79 --- src/app/videoprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/videoprovider.cpp b/src/app/videoprovider.cpp index 4eec999dd..d7741b770 100644 --- a/src/app/videoprovider.cpp +++ b/src/app/videoprovider.cpp @@ -109,7 +109,7 @@ VideoProvider::onRendererStarted(const QString& id) { auto size = avModel_.getRendererSize(id); // 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; } auto pixelFormat = avModel_.useDirectRenderer() ? QVideoFrameFormat::Format_RGBA8888 -- GitLab