summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-06-08 10:42:03 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-06-10 14:33:49 +0200
commit3d909ba8ac0f43af6d70830a5c95df3e741f1221 (patch)
tree7802b0c29b6dc19c65640e8d46f8dad70c148786 /src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
parent22ae5eec6314b59c8a969b743a9c05fb184cc9b2 (diff)
Quick: Allow to build with -no-opengl
Change-Id: I927998b9ffa80a324636855c5dcc92cb57e9d520 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/qtmultimediaquicktools/qdeclarativevideooutput.cpp')
-rw-r--r--src/qtmultimediaquicktools/qdeclarativevideooutput.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
index caa022c5c..5f5b2f2a0 100644
--- a/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
+++ b/src/qtmultimediaquicktools/qdeclarativevideooutput.cpp
@@ -257,14 +257,13 @@ bool QDeclarativeVideoOutput::createBackend(QMediaService *service)
}
}
}
-#if QT_CONFIG(opengl)
+
if (!backendAvailable) {
if (!m_backend)
m_backend.reset(new QDeclarativeVideoRendererBackend(this));
if (m_backend->init(service))
backendAvailable = true;
}
-#endif
// QDeclarativeVideoWindowBackend only works when there is a service with a QVideoWindowControl.
// Without service, the QDeclarativeVideoRendererBackend should always work.