summaryrefslogtreecommitdiff
path: root/src/multimediawidgets/qpaintervideosurface.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-02-13 13:10:48 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-02-13 13:10:48 +0100
commitf9014d136f504c6377d1329c822f11a8b58ccdbe (patch)
tree1c1a752d8ba6b5094b182305d65ca0d0101e1ed0 /src/multimediawidgets/qpaintervideosurface.cpp
parentbbfccc713546f9e7341fbe1af7482cafbdc4ea25 (diff)
parent06259f1dfbd9cb2ebd58bba59381a42dc8a758df (diff)
downloadqtmultimedia-f9014d136f504c6377d1329c822f11a8b58ccdbe.tar.gz
Merge remote-tracking branch 'origin/5.4' into dev
Change-Id: I5575a4ba13212c9bfe73a3de3ef17c6528beafc3
Diffstat (limited to 'src/multimediawidgets/qpaintervideosurface.cpp')
-rw-r--r--src/multimediawidgets/qpaintervideosurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimediawidgets/qpaintervideosurface.cpp b/src/multimediawidgets/qpaintervideosurface.cpp
index a5d278754..ea6e75e24 100644
--- a/src/multimediawidgets/qpaintervideosurface.cpp
+++ b/src/multimediawidgets/qpaintervideosurface.cpp
@@ -141,8 +141,8 @@ QAbstractVideoSurface::Error QVideoSurfaceGenericPainter::start(const QVideoSurf
bool ok = m_imageFormat != QImage::Format_Invalid && !m_imageSize.isEmpty();
#ifndef QT_NO_OPENGL
if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES)
-#endif
ok &= format.pixelFormat() != QVideoFrame::Format_RGB24;
+#endif
if (ok)
return QAbstractVideoSurface::NoError;
} else if (t == QAbstractVideoBuffer::QPixmapHandle) {