Make settings.OUTPUT a GStreamer bin description.
This commit is contained in:
parent
c565e274a5
commit
7948921510
@ -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)
|
||||
|
||||
@ -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.
|
||||
#:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user