summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2017-06-15 18:10:15 +0200
committerChristian Stromme <christian.stromme@qt.io>2017-10-23 09:27:43 +0000
commit2ec485482d185f92e4de33f634bc3ef9dd6c9188 (patch)
treeb887548ad195b34c04c5835a205788cfa2cbd209
parent0e91c4b4fddc9757e8a92a60bdd2a59bc3f876f1 (diff)
downloadqtmultimedia-2ec485482d185f92e4de33f634bc3ef9dd6c9188.tar.gz
Android: Set the correct scan line for the video surface format
The default value for QVideoSurfaceFormat is TopToBottom, so we need to change it. Task-number: QTBUG-51213 Change-Id: I47826a60fbae57f3d30d358a9ab8f05b784aeebd Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r--src/plugins/android/src/common/qandroidvideooutput.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/android/src/common/qandroidvideooutput.cpp b/src/plugins/android/src/common/qandroidvideooutput.cpp
index b425b9d89..eb41d4a8e 100644
--- a/src/plugins/android/src/common/qandroidvideooutput.cpp
+++ b/src/plugins/android/src/common/qandroidvideooutput.cpp
@@ -324,6 +324,7 @@ void QAndroidTextureVideoOutput::onFrameAvailable()
if (!m_surface->isActive()) {
QVideoSurfaceFormat format(frame.size(), frame.pixelFormat(),
QAbstractVideoBuffer::GLTextureHandle);
+ format.setScanLineDirection(QVideoSurfaceFormat::BottomToTop);
m_surface->start(format);
}