diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 1a62b83b8b..b8949b2d35 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -629,6 +629,23 @@ gst_debug_print_object (gpointer ptr) if (*(GType *) ptr == GST_TYPE_STRUCTURE) { return gst_info_structure_to_string ((const GstStructure *) ptr); } + if (GST_IS_BUFFER (ptr)) { + GstBuffer *buf = (GstBuffer *) ptr; + gchar *caps, *ret; + + caps = gst_caps_to_string (GST_BUFFER_CAPS (buf)); + ret = + g_strdup_printf ("%p, data %p, malloc %p, ts %" GST_TIME_FORMAT + ", dur %" GST_TIME_FORMAT ", size %u, offset %" G_GUINT64_FORMAT + ", offset_end %" G_GUINT64_FORMAT ", caps: %s", buf, + GST_BUFFER_DATA (buf), GST_BUFFER_MALLOCDATA (buf), + GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)), + GST_TIME_ARGS (GST_BUFFER_DURATION (buf)), GST_BUFFER_SIZE (buf), + GST_BUFFER_OFFSET (buf), GST_BUFFER_OFFSET_END (buf), caps); + + g_free (caps); + return ret; + } #ifdef USE_POISONING if (*(guint32 *) ptr == 0xffffffff) { return g_strdup_printf ("", ptr); diff --git a/gst/gstpad.c b/gst/gstpad.c index 75732dcb43..7bb8fc3994 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -3598,9 +3598,8 @@ gst_pad_chain_data_unchecked (GstPad * pad, GstProbeType type, void *data) goto no_function; GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad, - "calling chainfunction &%s with buffer %p, ts %" GST_TIME_FORMAT, - GST_DEBUG_FUNCPTR_NAME (chainfunc), - GST_BUFFER (data), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (data))); + "calling chainfunction &%s with buffer %" GST_PTR_FORMAT, + GST_DEBUG_FUNCPTR_NAME (chainfunc), GST_BUFFER (data)); ret = chainfunc (pad, GST_BUFFER_CAST (data));