diff options
author | MaZderMind <github@mazdermind.de> | 2014-08-12 17:57:41 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2014-08-12 17:57:41 +0200 |
commit | a6ee76655642e77f8ffbe16e0821fdfd91116016 (patch) | |
tree | c4b04724258f95a87a28f0f53cad123c6e328c1e /voctocore/experiments/shmsrc.py | |
parent | 95cefc34d05a36c523ae74d340b95d67a930e856 (diff) |
try to add a pad-probe to see (and avoid) a EOS marker
Diffstat (limited to 'voctocore/experiments/shmsrc.py')
-rw-r--r-- | voctocore/experiments/shmsrc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/voctocore/experiments/shmsrc.py b/voctocore/experiments/shmsrc.py index e9dd23a..5cb7304 100644 --- a/voctocore/experiments/shmsrc.py +++ b/voctocore/experiments/shmsrc.py @@ -20,8 +20,12 @@ class ShmSrc(Gst.Bin): self.caps.set_property('caps', caps) self.shmsrc.link(self.caps) + self.shmsrc.get_static_pad('src').add_probe(Gst.PadProbeType.BLOCK | Gst.PadProbeType.EVENT_BOTH, self.event_probe, None) # Add Ghost Pads self.add_pad( Gst.GhostPad.new('sink', self.caps.get_static_pad('src')) ) + + def event_probe(self, pad, info, ud): + print("event_probe") |