diff options
author | Lars Knoll <lars.knoll@qt.io> | 2022-03-03 15:43:05 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2022-04-01 09:08:06 +0200 |
commit | 4fb9b20a295c49fccdb8c6f31e035c1ef287140b (patch) | |
tree | d51b91ab33b81b58400da6e828b650598ab27bd2 /tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp | |
parent | 71c5377235b9e37be9c0eb25671e23484e289fad (diff) |
FFmpeg: Various fixes to the ffmpeg audio decoder
* Pass more of the audio decoder auto tests.
* Correctly handle requesting a specific audio format.
* Fixes to error handling
Change-Id: I9ef1afe5038951dc6c666cb007d941758ced5056
Reviewed-by: Rafael Roquetto <rafael.roquetto@qt.io>
Diffstat (limited to 'tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp')
-rw-r--r-- | tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp index d7031ee70..a014b2dec 100644 --- a/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp +++ b/tests/auto/integration/qaudiodecoderbackend/tst_qaudiodecoderbackend.cpp @@ -323,7 +323,8 @@ void tst_QAudioDecoderBackend::unsupportedFileTest() QVERIFY(isDecodingSpy.isEmpty()); QVERIFY(finishedSpy.isEmpty()); QVERIFY(positionSpy.isEmpty()); - QVERIFY(durationSpy.isEmpty()); + // Either reject the file directly, or set the duration to 5secs on setUrl() and back to -1 on start() + QVERIFY(durationSpy.isEmpty() || durationSpy.count() == 2); errorSpy.clear(); @@ -340,7 +341,7 @@ void tst_QAudioDecoderBackend::unsupportedFileTest() QVERIFY(isDecodingSpy.isEmpty()); QVERIFY(finishedSpy.isEmpty()); QVERIFY(positionSpy.isEmpty()); - QVERIFY(durationSpy.isEmpty()); + QVERIFY(durationSpy.isEmpty() || durationSpy.count() == 2); d.stop(); |