[vlc-commits] [Git][videolan/vlc][master] qt: fix embed video being drawn outside window area

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Aug 1 17:47:51 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
cd07011e by Pierre Lamot at 2023-08-01T17:26:43+00:00
qt: fix embed video being drawn outside window area

with extended frames the window maybe resized with the content keeping its size,
the video node didn't saw the change because it only tracks its local position
within the player view and not the global position. Fortunately, the
updatePaintNode gets called in this case.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/videosurface.cpp


Changes:

=====================================
modules/gui/qt/maininterface/videosurface.cpp
=====================================
@@ -355,8 +355,8 @@ QSGNode*VideoSurface::updatePaintNode(QSGNode* oldNode, QQuickItem::UpdatePaintN
 
         connect(m_provider, &VideoSurfaceProvider::hasVideoEmbedChanged, this, &VideoSurface::onProviderVideoChanged);
 
-        updatePositionAndSize();
     }
+    updatePositionAndSize();
     return node;
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd07011e23ac08fd7e9fe33901271b35ee2df2da

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd07011e23ac08fd7e9fe33901271b35ee2df2da
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list