From 3d909ba8ac0f43af6d70830a5c95df3e741f1221 Mon Sep 17 00:00:00 2001 From: VaL Doroshchuk Date: Mon, 8 Jun 2020 10:42:03 +0200 Subject: Quick: Allow to build with -no-opengl Change-Id: I927998b9ffa80a324636855c5dcc92cb57e9d520 Reviewed-by: Laszlo Agocs --- src/qtmultimediaquicktools/qdeclarativevideooutput.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/qtmultimediaquicktools/qdeclarativevideooutput.cpp') 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. -- cgit v1.2.3