Add audioconvert to output pipeline to avoid gst.LinkError: <enum GST_PAD_LINK_NOFORMAT of type GstPadLinkReturn>

This commit is contained in:
Thomas Adamcik 2010-08-18 00:57:06 +02:00
parent 8203d45559
commit a969daf046

View File

@ -64,11 +64,12 @@ class GStreamerProcess(BaseProcess):
messages_thread.start()
self.gst_pipeline = gst.parse_launch(' ! '.join([
'audioconvert name=convert',
'volume name=volume',
'autoaudiosink'
]))
pad = self.gst_pipeline.get_by_name('volume').get_pad('sink')
pad = self.gst_pipeline.get_by_name('convert').get_pad('sink')
if settings.BACKENDS[0] == 'mopidy.backends.local.LocalBackend':
uri_bin = gst.element_factory_make('uridecodebin', 'uri')