From 239d09ecdc1272923cbeae91b0eb047a2ae4bec4 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 14 Jun 2007 10:33:28 +0000 Subject: [PATCH] gst/gstpad.c: Show the caps change in the log to help spotting the case of not exactly matching caps. 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 | 6 ++++++ gst/gstpad.c | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f508bd9..c71eedb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-14 Stefan Kost + + * 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 * docs/pwg/building-boiler.xml: diff --git a/gst/gstpad.c b/gst/gstpad.c index 2a7a38b..46710ca 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -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; } -- 2.7.4