tests/check/pipelines/cleanup.c: Print message name and not just number.
authorStefan Kost <ensonic@users.sourceforge.net>
Wed, 3 Oct 2007 15:05:30 +0000 (15:05 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Wed, 3 Oct 2007 15:05:30 +0000 (15:05 +0000)
Original commit message from CVS:
* tests/check/pipelines/cleanup.c:
Print message name and not just number.

ChangeLog
tests/check/pipelines/cleanup.c

index 5555588..554988a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-10-03  Stefan Kost  <ensonic@users.sf.net>
 
+       * tests/check/pipelines/cleanup.c:
+         Print message name and not just number.
+
+2007-10-03  Stefan Kost  <ensonic@users.sf.net>
+
        * docs/design/draft-tagreading.txt:
          Add some more thoughts.
 
index eeafe90..1e2a0b2 100644 (file)
@@ -66,8 +66,9 @@ run_pipeline (GstElement * pipeline, gchar * descr,
     } else if (revent & events) {
       continue;
     }
-    g_critical ("Unexpected message received of type %d, looking for %d: %s",
-        revent, tevent, descr);
+    g_critical
+        ("Unexpected message received of type %d, '%s', looking for %d: %s",
+        revent, gst_message_type_get_name (revent), tevent, descr);
   }
 
   gst_element_set_state (pipeline, GST_STATE_NULL);