mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-28 06:42:16 +00:00
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.
This commit is contained in:
parent
1b343395e7
commit
239d09ecdc
2 changed files with 12 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue