[transmageddon: 3/5] transcoder_engine: Properly emit errors



commit e8c335382e70795bada015f9385bce5a124e1e71
Author: Thiago Santos <thiago sousa santos collabora co uk>
Date:   Sun Jul 31 15:40:22 2011 -0300

    transcoder_engine: Properly emit errors
    
    Emit errors correctly so they are displayed on the UI

 src/transcoder_engine.py |    1 +
 src/transmageddon.py     |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/transcoder_engine.py b/src/transcoder_engine.py
index c71c42e..292896d 100644
--- a/src/transcoder_engine.py
+++ b/src/transcoder_engine.py
@@ -331,6 +331,7 @@ class Transcoder(gobject.GObject):
            print debug
            gst.DEBUG_BIN_TO_DOT_FILE (self.pipeline, gst.DEBUG_GRAPH_SHOW_ALL, \
                    'transmageddon.dot')
+           self.emit('got-error', err.message)
        elif mtype == gst.MESSAGE_ASYNC_DONE:
            self.emit('ready-for-querying')
        elif mtype == gst.MESSAGE_EOS:
diff --git a/src/transmageddon.py b/src/transmageddon.py
index cb10257..a902b83 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -1048,6 +1048,8 @@ class TransmageddonUI:
                self.videopasstoggle = False
            else:
                error_message=_("Uknown error")
+       else:
+         error_message = error_string
        context_id = self.StatusBar.get_context_id("EOS")
        self.StatusBar.push(context_id, error_message)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]