summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-08-13 10:36:51 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-08-16 09:59:41 +0000
commit0350374dcdf7e13478f6696c940b8b86fc67c2af (patch)
treed87130bbdc1987bf28ad84217b4e83450028c138 /tests
parent7998e1f7ce83e779f26515b99bc4db4330c40ced (diff)
Ensure we correctly set the videoSize property in QVideoSink
Move the size handling logic into QPlatformVideoSink and make it platform independent. Always update the video size whenever we get a new video frame, and allow setting the size for windowed playback. Fixes: QTBUG-95154 Change-Id: I401c731a73646b5f4a5938100c9f64189d4bff6c Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: André de la Rocha <andre.rocha@qt.io> (cherry picked from commit 3ab77c90c4b199fdb09184ba8347872b38925657) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
index c3042dcb0..102b31c3a 100644
--- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
+++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
@@ -1157,6 +1157,7 @@ void tst_QMediaPlayerBackend::videoDimensions()
player.pause();
QTRY_COMPARE(surface.m_totalFrames, 1);
QCOMPARE(surface.m_frameList.last().height(), 120);
+ QCOMPARE(surface.videoSize().height(), 120);
}
QTEST_MAIN(tst_QMediaPlayerBackend)