From 8e771e89701f8c545d80def4d4cf5303486f83d5 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 2 Sep 2015 00:39:22 +0200 Subject: [PATCH] gst1: Update GhostPad() with GhostPad.new() --- mopidy/audio/actor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/audio/actor.py b/mopidy/audio/actor.py index f338b377..8241f056 100644 --- a/mopidy/audio/actor.py +++ b/mopidy/audio/actor.py @@ -139,7 +139,7 @@ class _Outputs(Gst.Bin): self._tee = Gst.ElementFactory.make('tee') self.add(self._tee) - ghost_pad = Gst.GhostPad('sink', self._tee.get_pad('sink')) + ghost_pad = Gst.GhostPad.new('sink', self._tee.get_pad('sink')) self.add_pad(ghost_pad) # Add an always connected fakesink which respects the clock so the tee @@ -487,7 +487,7 @@ class Audio(pykka.ThreadingActor): else: queue.link(self._outputs) - ghost_pad = Gst.GhostPad('sink', queue.get_pad('sink')) + ghost_pad = Gst.GhostPad.new('sink', queue.get_pad('sink')) audio_sink.add_pad(ghost_pad) self._playbin.set_property('audio-sink', audio_sink)