summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSamuel Mira <samuel.mira@qt.io>2022-01-11 17:58:56 +0000
committerSamuel Mira <samuel.mira@qt.io>2022-01-12 13:39:41 +0000
commit372349a1b4f01e4ad5470ed2403fb20d4a0b0214 (patch)
treec845e1752507e13bfaf28f21d3119a1fa8854e53 /tests
parent40a7b36f5324b1f5d1585f43c14a66b521372b86 (diff)
Fix Android sending a single video frame
Android was not sending video frames automatically, and it had to readback frame for the next frame to be available. This patch forces the emit of the frameAvailable. Fixes: QTBUG-99650 Pick-to: 6.2 6.3 Change-Id: I7559c65b734724d4e21bbb9b2e7f3a3ae8de97d2 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
index 058183c6d..0cbee4ba8 100644
--- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
+++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
@@ -118,12 +118,6 @@ 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: