summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-04-27 16:18:24 +0200
committerLars Knoll <lars.knoll@qt.io>2021-05-03 07:05:57 +0000
commitc5509a04ce79a56f0f7cb8ecebfe5bc492c6ed75 (patch)
tree02998151e5d95b04ab93c059974834f0b822d165 /tests
parent89dafd3bd315d940a7a40e65f226eea8df0887e9 (diff)
Cleanup and refactor QGstAppSrc
Clean up the code in QGstAppSrc. Use the new QGst* classes, and move creation of the GstAppSrc into the class by default. We still need a way to use an externally defined app src for playbin support in the audio decoder, so still allow that. Adjust usages of the API in all places. Change-Id: Ibcad7e4c836ca9572dfc3d8ed17b7f1980913619 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp b/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp
index 5a6a0ded7..29a596df7 100644
--- a/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp
+++ b/tests/auto/integration/qaudiooutput/tst_qaudiooutput.cpp
@@ -424,8 +424,7 @@ void tst_QAudioOutput::pull()
QString("didn't emit StoppedState signal after stop(), got %1 signals instead").arg(stateSignal.count()).toUtf8().constData());
QVERIFY2((audioOutput.state() == QAudio::StoppedState), "didn't transitions to StoppedState after stop()");
- QVERIFY2((processedUs == 1000000),
- QString("processedUSecs() doesn't equal file duration in us (%1)").arg(processedUs).toUtf8().constData());
+ QCOMPARE(processedUs, 1000000);
QVERIFY2((audioOutput.error() == QAudio::NoError), "error() is not QAudio::NoError after stop()");
QVERIFY2((audioOutput.elapsedUSecs() == (qint64)0), "elapsedUSecs() not equal to zero in StoppedState");