[farsight2/master] Improve error messages a bit

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


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

diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index 66d4d1f..988ac91 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -135,11 +135,11 @@ class FsUIPipeline:
                and message.type != gst.MESSAGE_ASYNC_DONE:
             print message.type
         if message.type == gst.MESSAGE_ERROR:
-            print message.parse_error()
+            print message.src.get_name(), ": ", message.parse_error()
         elif message.type == gst.MESSAGE_WARNING:
-            print message.parse_warning()
+            print message.src.get_name(), ": ", message.parse_warning()
         elif message.type == gst.MESSAGE_ELEMENT:
-            print message.structure.get_name()
+            print message.src.get_name(), ": ", message.structure.get_name()
         
         return True
 
-- 
1.5.6.5




More information about the farsight-commits mailing list