summaryrefslogtreecommitdiff
path: root/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp')
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp6
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: