gstquery: Make debugging message more informative
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 3 Oct 2011 07:29:10 +0000 (09:29 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 3 Oct 2011 07:31:59 +0000 (09:31 +0200)
For all the newcomers out there who still don't know the values of
GstQueryType enum by heart...
... and old-timers who've got better things to do :)

gst/gstquery.c

index c917c04..2b1c382 100644 (file)
@@ -360,7 +360,7 @@ gst_query_new (GstQueryType type, GstStructure * structure)
 
   query = (GstQuery *) gst_mini_object_new (GST_TYPE_QUERY);
 
-  GST_DEBUG ("creating new query %p %d", query, type);
+  GST_DEBUG ("creating new query %p %s", query, gst_query_type_get_name (type));
 
   query->type = type;