summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-07-30 03:00:10 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-07-30 12:21:51 +0200
commit3f17e216c9c75c667ab501a59bcb96be62e3afa1 (patch)
tree7e20d31bae96154abd2b10e43fdfbc4f0d284c77 /src/qtmultimediaquicktools
parent3f12e848168f61f986f2809cd7f8dac75408548f (diff)
parentdbdcc1b099dc25ffb707a2441191463de33c51f3 (diff)
Merge remote-tracking branch 'origin/5.13' into dev
Diffstat (limited to 'src/qtmultimediaquicktools')
-rw-r--r--src/qtmultimediaquicktools/qdeclarativevideooutput.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
index 4ef605e28..18cf0e927 100644
--- a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
+++ b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
@@ -411,8 +411,13 @@ void QDeclarativeVideoOutput::_q_updateGeometry()
m_contentRect.moveCenter(rect.center());
}
- if (m_backend)
- m_backend->updateGeometry();
+ if (m_backend) {
+ if (!m_backend->videoSurface() || m_backend->videoSurface()->isActive())
+ m_backend->updateGeometry();
+ else
+ m_geometryDirty = true;
+ }
+
if (m_contentRect != oldContentRect)
emit contentRectChanged();