From 6f8ccc88e827aeb09f6f9c7219f2d5f5013c6ebb Mon Sep 17 00:00:00 2001 From: Roger Maclean Date: Fri, 31 Jan 2014 14:58:54 -0500 Subject: [PATCH] Ensure the backend has had its geometry updated. When trying to play video in an overlay window, the video fails to be displayed because everything that would cause updateGeometry to be called on the backend has already occurred prior to the backend having been created. Change-Id: Ida3c8feea69b497a18e9f44d7143bed03380d6ae Reviewed-by: Yoann Lopes --- src/qtmultimediaquicktools/qdeclarativevideooutput.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp index 321fd5e..a04b38c 100644 --- a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp +++ b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp @@ -247,7 +247,10 @@ bool QDeclarativeVideoOutput::createBackend(QMediaService *service) if (!backendAvailable) { qWarning() << Q_FUNC_INFO << "Media service has neither renderer nor window control available."; m_backend.reset(); + } else if (!m_geometryDirty) { + m_backend->updateGeometry(); } + return backendAvailable; } -- 2.7.4