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

Pierre Lamot pierre at videolabs.io
Thu Aug 6 09:43:53 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 18f2f296fb..5a42129a7a 100644
--- a/modules/gui/qt/maininterface/videosurface.cpp
+++ b/modules/gui/qt/maininterface/videosurface.cpp
@@ -276,5 +276,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