diff options
author | Samuel Mira <samuel.mira@qt.io> | 2021-12-21 09:55:25 +0000 |
---|---|---|
committer | Samuel Mira <samuel.mira@qt.io> | 2022-01-07 08:48:36 +0000 |
commit | 203cb0f9523739c2c3583abd69e55fa49c41588e (patch) | |
tree | 44aa6f2eb49d6198f9372ca1f43a0a66a80ddac1 /tests | |
parent | 069b3850e61f0fd0bb7ab9903173802887c9cf65 (diff) |
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
Pick-to: 6.2 6.3
Change-Id: Id8a0e622158f836813b7ed266ad3580aff68171f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-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: |