diff options
author | MaZderMind <peter@mazdermind.de> | 2014-08-25 15:19:50 +0200 |
---|---|---|
committer | MaZderMind <peter@mazdermind.de> | 2014-08-25 15:19:50 +0200 |
commit | c069dba94d98e44634bbc9b4a67c93dfeab249af (patch) | |
tree | d147c625ce53464954256a1e29bc97a3cde4e65d /voctocore/experiments | |
parent | 91665267433095988dd926b43e845adca32486f0 (diff) |
add working example
Diffstat (limited to 'voctocore/experiments')
-rwxr-xr-x | voctocore/experiments/binlinktest.py | 8 |
1 files changed, 6 insertions, 2 deletions
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): |