diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2014-05-19 12:48:59 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-30 14:46:13 +0200 |
commit | 92096afdb496eaf5c4458155f7b1740a0dbb68bf (patch) | |
tree | 9708a0dbf72e409cd27be3fbb38b04a6827e75ed | |
parent | 7e668fe58fc9546eb91bbf39992566f709b5e6c2 (diff) | |
download | qtmultimedia-92096afdb496eaf5c4458155f7b1740a0dbb68bf.tar.gz |
Android: fix calling start() and stop() on the video surface.
We restart the surface when the frame size changes, though we were
not using the correct function to get the surface's current frame size.
This was causing start() and stop() to be called for every frame.
Change-Id: I8ff4b4852cb7fcc92ac3b1b3ad7bf991d7bddc6b
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
-rw-r--r-- | src/plugins/android/src/common/qandroidvideorendercontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/android/src/common/qandroidvideorendercontrol.cpp b/src/plugins/android/src/common/qandroidvideorendercontrol.cpp index 5f14a4691..1891e9d10 100644 --- a/src/plugins/android/src/common/qandroidvideorendercontrol.cpp +++ b/src/plugins/android/src/common/qandroidvideorendercontrol.cpp @@ -267,7 +267,7 @@ void QAndroidVideoRendererControl::onFrameAvailable() QVideoFrame frame(buffer, m_nativeSize, QVideoFrame::Format_BGR32); if (m_surface->isActive() && (m_surface->surfaceFormat().pixelFormat() != frame.pixelFormat() - || m_surface->nativeResolution() != frame.size())) { + || m_surface->surfaceFormat().frameSize() != frame.size())) { m_surface->stop(); } |