pad: make some debug traces more useful
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 15 Sep 2011 12:20:15 +0000 (13:20 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 16 Sep 2011 11:07:21 +0000 (12:07 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=659139

gst/gstpad.c

index c501669..69a4109 100644 (file)
@@ -4258,8 +4258,10 @@ gst_pad_chain_data_unchecked (GstPad * pad, gboolean is_buffer, void *data,
       goto no_function;
 
     GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad,
-        "calling chainfunction &%s with buffer %p",
-        GST_DEBUG_FUNCPTR_NAME (chainfunc), data);
+        "calling chainfunction &%s with %s buffer %p, ts %" GST_TIME_FORMAT,
+        GST_DEBUG_FUNCPTR_NAME (chainfunc),
+        (caps) ? gst_structure_get_name (gst_caps_get_structure (caps, 0)) : "",
+        GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (data)));
 
     if (cache) {
       cache->peer = gst_object_ref (pad);
@@ -5264,8 +5266,9 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
   if (peerpad == NULL)
     goto not_linked;
 
-  GST_LOG_OBJECT (pad, "sending event %s to peerpad %" GST_PTR_FORMAT,
-      GST_EVENT_TYPE_NAME (event), peerpad);
+  GST_LOG_OBJECT (pad,
+      "sending event %s (%" GST_PTR_FORMAT ") to peerpad %" GST_PTR_FORMAT,
+      GST_EVENT_TYPE_NAME (event), event, peerpad);
   gst_object_ref (peerpad);
   GST_OBJECT_UNLOCK (pad);