summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer/qgstreamerserviceplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/gstreamer/qgstreamerserviceplugin.cpp')
-rw-r--r--src/plugins/gstreamer/qgstreamerserviceplugin.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/gstreamer/qgstreamerserviceplugin.cpp b/src/plugins/gstreamer/qgstreamerserviceplugin.cpp
index d765fd70c..7c66eac13 100644
--- a/src/plugins/gstreamer/qgstreamerserviceplugin.cpp
+++ b/src/plugins/gstreamer/qgstreamerserviceplugin.cpp
@@ -60,6 +60,10 @@
#include "camerabinservice.h"
#endif
+#ifdef QMEDIA_GSTREAMER_AUDIO_DECODER
+#include "qgstreameraudiodecoderservice.h"
+#endif
+
#include <qmediaserviceproviderplugin.h>
#include <linux/types.h>
@@ -81,7 +85,9 @@ QStringList QGstreamerServicePlugin::keys() const
#ifdef QMEDIA_GSTREAMER_PLAYER
<< QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)
#endif
-
+#ifdef QMEDIA_GSTREAMER_AUDIO_DECODER
+ << QLatin1String(Q_MEDIASERVICE_AUDIODECODER)
+#endif
#ifdef QMEDIA_GSTREAMER_CAPTURE
<< QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE)
<< QLatin1String(Q_MEDIASERVICE_CAMERA)
@@ -110,6 +116,11 @@ QMediaService* QGstreamerServicePlugin::create(const QString &key)
return new CameraBinService(key);
#endif
+#ifdef QMEDIA_GSTREAMER_AUDIO_DECODER
+ if (key == QLatin1String(Q_MEDIASERVICE_AUDIODECODER))
+ return new QGstreamerAudioDecoderService;
+#endif
+
#ifdef QMEDIA_GSTREAMER_CAPTURE
if (key == QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE))
return new QGstreamerCaptureService(key);