From ee99bedf3919506653ae71a2cc9b4074cd34de2a Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 26 Oct 2015 21:39:09 +0100 Subject: [PATCH] gst1: Gst.Bin() no longer takes a name --- mopidy/audio/actor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mopidy/audio/actor.py b/mopidy/audio/actor.py index 7cbe9393..c51449c5 100644 --- a/mopidy/audio/actor.py +++ b/mopidy/audio/actor.py @@ -136,7 +136,8 @@ class _Appsrc(object): class _Outputs(Gst.Bin): def __init__(self): - Gst.Bin.__init__(self, 'outputs') + Gst.Bin.__init__(self) + # TODO gst1: Set 'outputs' as the Bin name for easier debugging self._tee = Gst.ElementFactory.make('tee') self.add(self._tee) @@ -468,7 +469,7 @@ class Audio(pykka.ThreadingActor): self._outputs.get_static_pad('sink')) def _setup_audio_sink(self): - audio_sink = Gst.Bin('audio-sink') + audio_sink = Gst.ElementFactory.make('bin', 'audio-sink') # Queue element to buy us time between the about to finish event and # the actual switch, i.e. about to switch can block for longer thanks