Potential fix for gst LinkError (#144) suggested by adamcik

This commit is contained in:
Stein Magnus Jodal 2012-02-10 00:42:39 +01:00
parent fc5f6df740
commit 844b219565

View File

@ -83,6 +83,8 @@ 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())
pad.link(target_pad)
def _on_message(self, bus, message):