gst/gstpad.c: Show the caps change in the log to help spotting the case of not exactl...
authorStefan Kost <ensonic@users.sourceforge.net>
Thu, 14 Jun 2007 10:33:28 +0000 (10:33 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Thu, 14 Jun 2007 10:33:28 +0000 (10:33 +0000)
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_alloc_buffer_full), (gst_pad_push):
Show the caps change in the log to help spotting the case of not
exactly matching caps.

ChangeLog
gst/gstpad.c

index f508bd9..c71eedb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-14  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/gstpad.c: (gst_pad_alloc_buffer_full), (gst_pad_push):
+         Show the caps change in the log to help spotting the case of not
+         exactly matching caps.
+
 2007-06-14  Tim-Philipp Müller  <tim at centricular dot net>
 
        * docs/pwg/building-boiler.xml:
index 2a7a38b..46710ca 100644 (file)
@@ -2731,7 +2731,9 @@ gst_pad_alloc_buffer_full (GstPad * pad, guint64 offset, gint size,
 
   /* we got a new datatype on the pad, see if it can handle it */
   if (G_UNLIKELY (caps_changed)) {
-    GST_DEBUG_OBJECT (pad, "caps changed to %p %" GST_PTR_FORMAT, caps, caps);
+    GST_DEBUG_OBJECT (pad,
+        "caps changed from %" GST_PTR_FORMAT " to %p %" GST_PTR_FORMAT,
+        GST_PAD_CAPS (pad), caps, caps);
     if (G_UNLIKELY (!gst_pad_configure_src (pad, caps, setcaps)))
       goto not_negotiated;
   }
@@ -3609,7 +3611,9 @@ gst_pad_push (GstPad * pad, GstBuffer * buffer)
 
   /* we got a new datatype from the pad, it had better handle it */
   if (G_UNLIKELY (caps_changed)) {
-    GST_DEBUG_OBJECT (pad, "caps changed to %p %" GST_PTR_FORMAT, caps, caps);
+    GST_DEBUG_OBJECT (pad,
+        "caps changed from %" GST_PTR_FORMAT " to %p %" GST_PTR_FORMAT,
+        GST_PAD_CAPS (pad), caps, caps);
     if (G_UNLIKELY (!gst_pad_configure_src (pad, caps, TRUE)))
       goto not_negotiated;
   }