Switch arguments so that unlink() is passed the sinkpad

This commit is contained in:
Stein Magnus Jodal 2012-02-13 09:37:21 +01:00
parent 844b219565
commit eb8ecc33a2

View File

@ -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):