From c069dba94d98e44634bbc9b4a67c93dfeab249af Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 25 Aug 2014 15:19:50 +0200 Subject: add working example --- voctocore/experiments/binlinktest.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'voctocore/experiments') diff --git a/voctocore/experiments/binlinktest.py b/voctocore/experiments/binlinktest.py index 92d02ca..690daaa 100755 --- a/voctocore/experiments/binlinktest.py +++ b/voctocore/experiments/binlinktest.py @@ -40,9 +40,13 @@ class MixBin(Gst.Bin): def add_src(self, src): sinkpad = self.mix.get_request_pad('sink_%u') sinkpad.set_property('alpha', 0.75) - src = src.get_static_pad('src') + srcpad = src.get_static_pad('src') - print(src.link(sinkpad)) # Error => GST_PAD_LINK_WRONG_HIERARCHY + # works + #print(src.link(self.mix)) # True + + # doesn't + print(srcpad.link(sinkpad)) # Error => GST_PAD_LINK_WRONG_HIERARCHY class Example: def __init__(self): -- cgit v1.2.3