From a6ee76655642e77f8ffbe16e0821fdfd91116016 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 12 Aug 2014 17:57:41 +0200 Subject: try to add a pad-probe to see (and avoid) a EOS marker --- voctocore/experiments/shmsrc.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'voctocore') 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") -- cgit v1.2.3