[vlc-devel] [PATCH v2 07/16] qt: only forward video resize event when VideoSurface is enabled

Pierre Lamot pierre at videolabs.io
Fri Aug 14 18:43:41 CEST 2020


---
 modules/gui/qt/maininterface/videosurface.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/maininterface/videosurface.cpp b/modules/gui/qt/maininterface/videosurface.cpp
index f491ca3d58..47c888ebf9 100644
--- a/modules/gui/qt/maininterface/videosurface.cpp
+++ b/modules/gui/qt/maininterface/videosurface.cpp
@@ -277,5 +277,6 @@ QSGNode*VideoSurface::updatePaintNode(QSGNode* oldNode, QQuickItem::UpdatePaintN
 
 void VideoSurface::onSurfaceSizeChanged()
 {
-    emit surfaceSizeChanged(size() * this->window()->effectiveDevicePixelRatio());
+    if (isEnabled())
+        emit surfaceSizeChanged(size() * this->window()->effectiveDevicePixelRatio());
 }
-- 
2.25.1



More information about the vlc-devel mailing list