[farsight2/master] Print errors in fs2-gui

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:21 PST 2008


---
 tests/gui/fs2-gui.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index e30af40..4138242 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -155,6 +155,8 @@ class FsUIPipeline:
             elif message.structure.has_name("farsight-send-codec-changed"):
                 print message.src.get_name(), ": ", message.structure.get_name()
                 print "send codec changed: " + message.structure["codec"].to_string()
+            elif message.structure.has_name("farsight-error"):
+                print "Async error ("+ str(message.structure["error-no"]) +"): " + message.structure["error-msg"] +" --- "+ message.structure["debug-msg"]
             else:
                 print message.src.get_name(), ": ", message.structure.get_name()
         elif message.type != gst.MESSAGE_STATE_CHANGED \
-- 
1.5.6.5




More information about the farsight-commits mailing list