diff options
author | Tim Blechmann <tim@klingt.org> | 2024-05-07 15:08:56 +0800 |
---|---|---|
committer | Tim Blechmann <tim@klingt.org> | 2024-05-08 10:40:34 +0800 |
commit | dc60c98f9ea4213801a20fc97f5780c48ac86bf1 (patch) | |
tree | 0a04b2fd16bdc4dc6ba80e7532c262929ff0fa31 /tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp | |
parent | 2cdf37083eda8348144577f933351d2e72de75f4 (diff) |
QAudioDecoderBackend: relax unit test
When reaching the end of a stream, the decoder can provide a buffer, but
the decoder will report that it is not decoding anymore.
Pick-to: 6.5 6.7
Change-Id: I286debfda8eee5cfc999ac462373c9e43bc2d92b
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Diffstat (limited to 'tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp')
-rw-r--r-- | tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp index 8b62d9811..5fb3a81a6 100644 --- a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp +++ b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp @@ -167,7 +167,6 @@ void tst_QAudioDecoderBackend::indirectReadingByBufferReadySignal() connect(&decoder, &QAudioDecoder::bufferReady, this, [&]() { QVERIFY(decoder.bufferAvailable()); - QVERIFY(decoder.isDecoding()); auto buffer = decoder.read(); QVERIFY(buffer.isValid()); @@ -210,8 +209,6 @@ void tst_QAudioDecoderBackend::indirectReadingByBufferAvailableSignal() { if (!available) return; - QVERIFY(decoder.isDecoding()); - while (decoder.bufferAvailable()) { auto buffer = decoder.read(); QVERIFY(buffer.isValid()); |