From 7948921510f59c5b1d4b40e336db698995f79bc5 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sun, 26 Aug 2012 12:18:28 +0200 Subject: [PATCH] Make settings.OUTPUT a GStreamer bin description. --- mopidy/gstreamer.py | 2 +- mopidy/settings.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy/gstreamer.py b/mopidy/gstreamer.py index 8d8bedb4..52fe079e 100644 --- a/mopidy/gstreamer.py +++ b/mopidy/gstreamer.py @@ -61,7 +61,7 @@ class GStreamer(ThreadingActor): self._pipeline.get_by_name('convert').get_pad('sink')) def _setup_output(self): - self._output = utils.get_function(settings.OUTPUT)() + self._output = gst.parse_bin_from_description(settings.OUTPUT, True) self._pipeline.add(self._output) gst.element_link_many(self._volume, self._output) logger.debug('Output set to %s', settings.OUTPUT) diff --git a/mopidy/settings.py b/mopidy/settings.py index 07bfda43..fce729d3 100644 --- a/mopidy/settings.py +++ b/mopidy/settings.py @@ -189,8 +189,8 @@ MPD_SERVER_MAX_CONNECTIONS = 20 #: #: Default:: #: -#: OUTPUT = u'mopidy.outputs.local' -OUTPUT = u'mopidy.outputs.local' +#: OUTPUT = u'autoaudiosink' +OUTPUT = u'autoaudiosink' #: Hostname of the SHOUTcast server which Mopidy should stream audio to. #: