mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
pad: Allow tracking of buffers in GST_SCHEDULING debug output
As GST_SCHEDULING reports when buffers pass through pads due to gst_pad_push calls, they are a good way of tracking the progress of buffers through pipelines. As such, adding output of the buffer pointers to these messages allows tracking of specific buffers, easing debugging.
This commit is contained in:
parent
3f1ef2255a
commit
fd5aa095da
1 changed files with 9 additions and 7 deletions
16
gst/gstpad.c
16
gst/gstpad.c
|
@ -4236,7 +4236,8 @@ 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", GST_DEBUG_FUNCPTR_NAME (chainfunc));
|
||||
"calling chainfunction &%s with buffer %p",
|
||||
GST_DEBUG_FUNCPTR_NAME (chainfunc), data);
|
||||
|
||||
if (cache) {
|
||||
cache->peer = gst_object_ref (pad);
|
||||
|
@ -4246,8 +4247,8 @@ gst_pad_chain_data_unchecked (GstPad * pad, gboolean is_buffer, void *data,
|
|||
ret = chainfunc (pad, GST_BUFFER_CAST (data));
|
||||
|
||||
GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad,
|
||||
"called chainfunction &%s, returned %s",
|
||||
GST_DEBUG_FUNCPTR_NAME (chainfunc), gst_flow_get_name (ret));
|
||||
"called chainfunction &%s with buffer %p, returned %s",
|
||||
GST_DEBUG_FUNCPTR_NAME (chainfunc), data, gst_flow_get_name (ret));
|
||||
} else {
|
||||
GstPadChainListFunction chainlistfunc;
|
||||
|
||||
|
@ -4676,14 +4677,15 @@ gst_pad_push (GstPad * pad, GstBuffer * buffer)
|
|||
if (G_UNLIKELY (g_atomic_pointer_get (cache_ptr) == PAD_CACHE_INVALID))
|
||||
goto invalid;
|
||||
|
||||
GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad, "calling chainfunction &%s",
|
||||
GST_DEBUG_FUNCPTR_NAME (GST_PAD_CHAINFUNC (peer)));
|
||||
GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad,
|
||||
"calling chainfunction &%s with buffer %p",
|
||||
GST_DEBUG_FUNCPTR_NAME (GST_PAD_CHAINFUNC (peer)), buffer);
|
||||
|
||||
ret = GST_PAD_CHAINFUNC (peer) (peer, buffer);
|
||||
|
||||
GST_CAT_LOG_OBJECT (GST_CAT_SCHEDULING, pad,
|
||||
"called chainfunction &%s, returned %s",
|
||||
GST_DEBUG_FUNCPTR_NAME (GST_PAD_CHAINFUNC (peer)),
|
||||
"called chainfunction &%s with buffer %p, returned %s",
|
||||
GST_DEBUG_FUNCPTR_NAME (GST_PAD_CHAINFUNC (peer)), buffer,
|
||||
gst_flow_get_name (ret));
|
||||
|
||||
GST_PAD_STREAM_UNLOCK (peer);
|
||||
|
|
Loading…
Reference in a new issue