From 45e1dcfed9b2d10985382e7e89f5a2c828d174a7 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 31 Aug 2014 10:13:16 +0200 Subject: show debug output from gst element --- voctocore/lib/shmsrc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'voctocore') diff --git a/voctocore/lib/shmsrc.py b/voctocore/lib/shmsrc.py index 7c80199..3b7a6a4 100644 --- a/voctocore/lib/shmsrc.py +++ b/voctocore/lib/shmsrc.py @@ -64,7 +64,9 @@ class FailsafeShmSrc(Gst.Bin): def do_handle_message(self, msg): if msg.type == Gst.MessageType.ERROR and msg.src == self.shmsrc: - self.log.warning('received error-message from ShmSrc, dropping') + (err, debug) = msg.parse_error() + self.log.warning('received error-message from ShmSrc, dropping: %s', err) + self.log.debug(' debug-info from shmsrc: %s', debug) else: Gst.Bin.do_handle_message(self, msg) -- cgit v1.2.3