diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-04-27 16:18:24 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-05-03 07:05:57 +0000 |
commit | c5509a04ce79a56f0f7cb8ecebfe5bc492c6ed75 (patch) | |
tree | 02998151e5d95b04ab93c059974834f0b822d165 /examples | |
parent | 89dafd3bd315d940a7a40e65f226eea8df0887e9 (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 '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 09f40c711..36bbb2919 100644 --- a/examples/multimedia/audiodecoder/audiodecoder.cpp +++ b/examples/multimedia/audiodecoder/audiodecoder.cpp @@ -66,7 +66,7 @@ AudioDecoder::AudioDecoder(bool isPlayback, bool isDelete, const QString &target format.setSampleRate(48000); m_decoder.setAudioFormat(format); - QIODevice* target = new QFile(targetFileName); + QIODevice* target = new QFile(targetFileName, this); if (target->open(QIODevice::WriteOnly)) m_waveDecoder = new QWaveDecoder(target, format); |