Make settings.OUTPUT a GStreamer bin description.

This commit is contained in:
Thomas Adamcik 2012-08-26 12:18:28 +02:00
parent c565e274a5
commit 7948921510
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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.
#: