diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-04-19 16:25:58 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-23 16:55:53 +0000 |
commit | e79f3a39f2ed6301cbbc48e62c10f674ed1e1348 (patch) | |
tree | 7d44aeba32278b7678c6449cd09b410513867885 /src/multimedia/audio/qaudiodecoder.cpp | |
parent | 7b28765dd0898e0638555e990308dc2fa09b79da (diff) |
Fix qaudiobuffer and qaudiodecoder autotests
Fix one enum value in the public API to better reflect
the error that is happening.
Change-Id: I4a71d64c79d443eb6fa9068defb90f3b436ec194
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Diffstat (limited to 'src/multimedia/audio/qaudiodecoder.cpp')
-rw-r--r-- | src/multimedia/audio/qaudiodecoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multimedia/audio/qaudiodecoder.cpp b/src/multimedia/audio/qaudiodecoder.cpp index 82dfdf422..e7c0b48ae 100644 --- a/src/multimedia/audio/qaudiodecoder.cpp +++ b/src/multimedia/audio/qaudiodecoder.cpp @@ -134,7 +134,7 @@ QAudioDecoder::QAudioDecoder(QObject *parent) connect(d->control ,SIGNAL(positionChanged(qint64)), this, SIGNAL(positionChanged(qint64))); connect(d->control ,SIGNAL(durationChanged(qint64)), this, SIGNAL(durationChanged(qint64))); } else { - d->error = ServiceMissingError; + d->error = NotSupportedError; d->errorString = tr("The QAudioDecoder object does not have a valid service"); } } @@ -193,7 +193,7 @@ void QAudioDecoder::start() if (d->control == nullptr) { QMetaObject::invokeMethod(this, "_q_error", Qt::QueuedConnection, - Q_ARG(int, QAudioDecoder::ServiceMissingError), + Q_ARG(int, QAudioDecoder::NotSupportedError), Q_ARG(QString, tr("The QAudioDecoder object does not have a valid service"))); return; } @@ -397,7 +397,7 @@ QAudioBuffer QAudioDecoder::read() const \value ResourceError A media resource couldn't be resolved. \value FormatError The format of a media resource isn't supported. \value AccessDeniedError There are not the appropriate permissions to play a media resource. - \value ServiceMissingError A valid playback service was not found, playback cannot proceed. + \value NotSupportedError QAudioDecoder is not supported on this platform */ // Signals |