aboutsummaryrefslogtreecommitdiff
path: root/voctocore/experiments
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-08-25 15:19:50 +0200
committerMaZderMind <peter@mazdermind.de>2014-08-25 15:19:50 +0200
commitc069dba94d98e44634bbc9b4a67c93dfeab249af (patch)
treed147c625ce53464954256a1e29bc97a3cde4e65d /voctocore/experiments
parent91665267433095988dd926b43e845adca32486f0 (diff)
add working example
Diffstat (limited to 'voctocore/experiments')
-rwxr-xr-xvoctocore/experiments/binlinktest.py8
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):