diff options
Diffstat (limited to 'voctocore')
-rw-r--r-- | voctocore/experiments/shmsrc.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 |