From eb8ecc33a2320a9f6aa489180c16defaa6b8b722 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 13 Feb 2012 09:37:21 +0100 Subject: [PATCH] Switch arguments so that unlink() is passed the sinkpad --- mopidy/gstreamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/gstreamer.py b/mopidy/gstreamer.py index 5d393b66..c33dbe03 100644 --- a/mopidy/gstreamer.py +++ b/mopidy/gstreamer.py @@ -84,7 +84,7 @@ class GStreamer(ThreadingActor): def _on_new_pad(self, source, pad, target_pad): if not pad.is_linked(): if target_pad.is_linked(): - target_pad.unlink(target_pad.get_peer()) + target_pad.get_peer().unlink(target_pad) pad.link(target_pad) def _on_message(self, bus, message):