[vlc-commits] qt: only forward video resize event when VideoSurface is enabled
Pierre Lamot
git at videolan.org
Thu Aug 20 10:20:59 CEST 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Jun 4 18:18:02 2020 +0200| [0a5d60f8a8f66abf387888dbf1236d4de527f87d] | committer: Pierre Lamot
qt: only forward video resize event when VideoSurface is enabled
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a5d60f8a8f66abf387888dbf1236d4de527f87d
---
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());
}
More information about the vlc-commits
mailing list