mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
gst: add some performance logging
Add some performance logging for caps copy and the slow default acceptcaps implementation
This commit is contained in:
parent
3d4a1a98b5
commit
34f770a900
2 changed files with 6 additions and 0 deletions
|
@ -150,6 +150,9 @@ _gst_caps_copy (const GstCaps * caps)
|
|||
GST_CAPS_FLAGS (newcaps) = GST_CAPS_FLAGS (caps);
|
||||
n = GST_CAPS_LEN (caps);
|
||||
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, caps, "doing copy %p -> %p",
|
||||
caps, newcaps);
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
structure = gst_caps_get_structure_unchecked (caps, i);
|
||||
gst_caps_append_structure (newcaps, gst_structure_copy (structure));
|
||||
|
|
|
@ -2658,6 +2658,9 @@ gst_pad_query_accept_caps_default (GstPad * pad, GstQuery * query)
|
|||
}
|
||||
}
|
||||
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, pad,
|
||||
"fallback ACCEPT_CAPS query, consider implementing a specialized version");
|
||||
|
||||
allowed = gst_pad_query_caps (pad, NULL);
|
||||
gst_query_parse_accept_caps (query, &caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue