diff options
author | Samuel Mira <samuel.mira@qt.io> | 2021-12-21 09:55:25 +0000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-01-07 09:22:48 +0000 |
commit | c15c8b66160444a31937059a0e22251c16b296a7 (patch) | |
tree | 95a525749304408b18fb69d320f1b88ae5cf4d04 | |
parent | be9d79b2fd89d6d98e72d67cd4b77f67285abbd0 (diff) | |
download | qtmultimedia-c15c8b66160444a31937059a0e22251c16b296a7.tar.gz |
Fix SurfaceText test in Android
Looking at logcat, it was possible to understand that the frames were
parsed, but they were not updated. Looks like that in android it is
necessary to call the frame map for the AndroidTextureVideoBuffer to
updateReadbackFrame. Updated the example to force that.
Fixes: QTBUG-99358
Change-Id: Id8a0e622158f836813b7ed266ad3580aff68171f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 203cb0f9523739c2c3583abd69e55fa49c41588e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp index 0cbee4ba8..058183c6d 100644 --- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp +++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp @@ -118,6 +118,12 @@ public Q_SLOTS: if (m_storeFrames) m_frameList.append(frame); ++m_totalFrames; + +#ifdef Q_OS_ANDROID + // in android it is necessary call the frame map for the + // AndroidTextureVideoBuffer to updateReadbackFrame + static_cast<QVideoFrame>(frame).map(QVideoFrame::ReadOnly); +#endif } public: |