summaryrefslogtreecommitdiffstats
path: root/src/plugins/wmf/decoder/mfdecoderservice.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-12-23 11:14:06 +0100
committerLars Knoll <lars.knoll@qt.io>2021-01-21 19:56:14 +0000
commitf83b3dd1ac60c04229d53b72a9d2c15f8cdd5abc (patch)
tree4bebf265422784c1b172f2d6b66d9910c35a194a /src/plugins/wmf/decoder/mfdecoderservice.cpp
parentca1584428b438cb65d5b2aaaca624e9e17578ebd (diff)
Get rid of QMediaControl
The class was serving no purpose that QObject doesn't offer, so remove that layer and use QObject as the base class for those controls. Change-Id: Icd434fabe88cbdba5fa54eafe6ba97ac08be61f3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/plugins/wmf/decoder/mfdecoderservice.cpp')
-rw-r--r--src/plugins/wmf/decoder/mfdecoderservice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/wmf/decoder/mfdecoderservice.cpp b/src/plugins/wmf/decoder/mfdecoderservice.cpp
index c6ed3976a..eb2069a23 100644
--- a/src/plugins/wmf/decoder/mfdecoderservice.cpp
+++ b/src/plugins/wmf/decoder/mfdecoderservice.cpp
@@ -49,7 +49,7 @@ MFAudioDecoderService::~MFAudioDecoderService()
{
}
-QMediaControl* MFAudioDecoderService::requestControl(const char *name)
+QObject *MFAudioDecoderService::requestControl(const char *name)
{
if (qstrcmp(name, QAudioDecoderControl_iid) == 0) {
return new MFAudioDecoderControl(this);
@@ -57,7 +57,7 @@ QMediaControl* MFAudioDecoderService::requestControl(const char *name)
return 0;
}
-void MFAudioDecoderService::releaseControl(QMediaControl *control)
+void MFAudioDecoderService::releaseControl(QObject *control)
{
if (control && control->inherits("MFAudioDecoderControl")) {
delete control;