mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
pad: improve debug
This commit is contained in:
parent
47f77a9e24
commit
422d1245c1
1 changed files with 5 additions and 2 deletions
|
@ -2361,12 +2361,15 @@ gboolean
|
||||||
gst_pad_has_current_caps (GstPad * pad)
|
gst_pad_has_current_caps (GstPad * pad)
|
||||||
{
|
{
|
||||||
gboolean result;
|
gboolean result;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "check current pad caps");
|
caps = get_pad_caps (pad);
|
||||||
result = (get_pad_caps (pad) != NULL);
|
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||||
|
"check current pad caps %" GST_PTR_FORMAT, caps);
|
||||||
|
result = (caps != NULL);
|
||||||
GST_OBJECT_UNLOCK (pad);
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue