mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +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)
|
||||
{
|
||||
gboolean result;
|
||||
GstCaps *caps;
|
||||
|
||||
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
||||
|
||||
GST_OBJECT_LOCK (pad);
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "check current pad caps");
|
||||
result = (get_pad_caps (pad) != NULL);
|
||||
caps = get_pad_caps (pad);
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
|
||||
"check current pad caps %" GST_PTR_FORMAT, caps);
|
||||
result = (caps != NULL);
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue