From d9ebf19d0cfdaf2a68f29f85b0e3156e41e61cbc Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 15 Aug 2014 10:05:31 +0200 Subject: drop ERROR message --- voctocore/experiments/shmsrc.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/voctocore/experiments/shmsrc.py b/voctocore/experiments/shmsrc.py index 63f428d..d44c6b3 100644 --- a/voctocore/experiments/shmsrc.py +++ b/voctocore/experiments/shmsrc.py @@ -55,11 +55,18 @@ class ShmSrc(Gst.Bin): Gst.GhostPad.new('sink', self.switch.get_static_pad('src')) ) + def do_handle_message(self, msg): + if msg.type == Gst.MessageType.ERROR: + print("do_handle_message(): dropping error") + return + + print("do_handle_message()", msg.src, msg.type) + Gst.Bin.do_handle_message(self, msg) + def event_probe(self, pad, info, ud): e = info.get_event() if e.type == Gst.EventType.EOS: self.switch_to_failstate() - return Gst.PadProbeReturn.DROP return Gst.PadProbeReturn.PASS -- cgit v1.2.3