[transmageddon/gtk3] Some small cleanups of messaging code
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon/gtk3] Some small cleanups of messaging code
- Date: Tue, 13 Dec 2011 16:31:52 +0000 (UTC)
commit 2c0db46810625b6484f2633ad546345798495105
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date: Tue Dec 13 16:31:40 2011 +0000
Some small cleanups of messaging code
src/transcoder_engine.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index 7313d7e..0a67eec 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -303,19 +303,16 @@ class Transcoder(GObject.GObject):
def BusWatcher(self):
bus = self.pipeline.get_bus()
bus.add_signal_watch()
- #bus.connect('message::eos', on_eos)
bus.connect('message', self.on_message)
- # bus = self.pipeline.get_bus()
- # bus.add_watch(self.on_message)
def on_message(self, bus, message):
mtype = message.type
# print mtype
if mtype == Gst.MessageType.ERROR:
- # print "we got an error, life is shit"
+ print "we got an error, life is shit"
err, debug = message.parse_error()
- #print err
- #print debug
+ print err
+ print debug
#Gst.DEBUG_BIN_TO_DOT_FILE (self.pipeline, Gst.DEBUG_GRAPH_SHOW_ALL, \
# 'transmageddon.dot')
#self.emit('got-error', err.message)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]