summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-08-15 10:05:31 +0200
committerMaZderMind <peter@mazdermind.de>2014-08-15 10:05:31 +0200
commitd9ebf19d0cfdaf2a68f29f85b0e3156e41e61cbc (patch)
tree5e1a2c414c142b94b44409bfb13043e52eeb5a73
parente98f8d9b23ca532f29526bdfa700c606ebfd39bf (diff)
drop ERROR message
-rw-r--r--voctocore/experiments/shmsrc.py9
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