summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2022-08-05 14:20:55 +0200
committerPiotr Srebrny <piotr.srebrny@qt.io>2022-08-09 18:27:44 +0200
commitc37c805b75c9c24a0d032c29e372a2310f9344fa (patch)
tree8ae161bcbf74ca68b9127145a4c8ff69f73d51bc /tests
parent762dbfe09d2d0c0b5c9c1e210d67d403fa9fd5f7 (diff)
Remove access to texture handles from public QVideoFrame API
textureHandle and rhiTexture should only be use internally and we can get access to those from QAbstractVideoBuffer Change-Id: Ifad8a3c533b3d76a6b97fde5b2e52986bffd1bb8 Reviewed-by: Lars Knoll <lars.knoll@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/unit/multimedia/qvideoframe/tst_qvideoframe.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/unit/multimedia/qvideoframe/tst_qvideoframe.cpp b/tests/auto/unit/multimedia/qvideoframe/tst_qvideoframe.cpp
index b6e31f6f8..5d3f35844 100644
--- a/tests/auto/unit/multimedia/qvideoframe/tst_qvideoframe.cpp
+++ b/tests/auto/unit/multimedia/qvideoframe/tst_qvideoframe.cpp
@@ -164,7 +164,8 @@ void tst_QVideoFrame::create()
QVERIFY(frame.isValid());
QCOMPARE(frame.handleType(), QVideoFrame::NoHandle);
- QCOMPARE(frame.textureHandle(0), 0u);
+ QVERIFY(frame.videoBuffer() != nullptr);
+ QCOMPARE(frame.videoBuffer()->textureHandle(0), 0u);
QCOMPARE(frame.pixelFormat(), pixelFormat);
QCOMPARE(frame.size(), size);
QCOMPARE(frame.width(), size.width());
@@ -195,7 +196,7 @@ void tst_QVideoFrame::createInvalid()
QVERIFY(!frame.isValid());
QCOMPARE(frame.handleType(), QVideoFrame::NoHandle);
- QCOMPARE(frame.textureHandle(0), 0u);
+ QCOMPARE(frame.videoBuffer(), nullptr);
QCOMPARE(frame.pixelFormat(), pixelFormat);
QCOMPARE(frame.size(), size);
QCOMPARE(frame.width(), size.width());