diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-05-11 15:49:03 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-05-17 10:34:08 +0000 |
commit | 718d25264419afd72c1d6ae7d4c335da286b216d (patch) | |
tree | 4de50ba2667641e4468365ee0f192520a63e6ab7 /examples | |
parent | 65d06e5445519e7b8094460e6d1d7983fa8cbaee (diff) |
Cleanup the audio decoder architecture
QPlatformAudioDecoder should not be a QObject, instead just
have a pointer back to the front-end class. The backend is
now also properly owned by the frontend.
Get rid of QAudioDecoderPrivate, we don't need it anymore.
Fix the audiodecoderbackend autotest and the audiodecoder
example.
Change-Id: Id9a3368788b5398f37b77be819e8f12947ba045f
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/audiodecoder/audiodecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimedia/audiodecoder/audiodecoder.cpp b/examples/multimedia/audiodecoder/audiodecoder.cpp index 7c46be800..401b41bfd 100644 --- a/examples/multimedia/audiodecoder/audiodecoder.cpp +++ b/examples/multimedia/audiodecoder/audiodecoder.cpp @@ -99,7 +99,7 @@ AudioDecoder::~AudioDecoder() void AudioDecoder::setSource(const QString &fileName) { - m_decoder.setSource(fileName); + m_decoder.setSource(QUrl::fromLocalFile(fileName)); } void AudioDecoder::start() |