summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2022-03-10 13:37:02 +0100
committerLars Knoll <lars.knoll@qt.io>2022-04-04 10:20:33 +0200
commita77d9c7ec377d4466b20d882e5318cf560b14513 (patch)
treec8c83bdd6cf42a23f85208c2e6f74b8f1f4fd390 /tests
parent37f274737ea4a1e212d6991bc486247ce622976b (diff)
FFmpeg: allow using a QIODevice as the source for playback
Implement the required support in the decoder, so that both QAudioDecoder and QMediaPlayer can handle an input device. Change-Id: I96e33a4cddd60b7ddd91022638efd040ea54ee96 Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp
index a014b2dec..c04d7ea2f 100644
--- a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp
+++ b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp
@@ -630,6 +630,7 @@ void tst_QAudioDecoderBackend::deviceTest()
QVERIFY(d.audioFormat() == format);
d.start();
+ QVERIFY(d.error() == QAudioDecoder::NoError);
QTRY_VERIFY(d.isDecoding());
QTRY_VERIFY(!isDecodingSpy.isEmpty());
QTRY_VERIFY(!readySpy.isEmpty());