mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 13:21:16 +00:00
gstpad: only warn on performance penalty if not using the template caps
After b76ecfd992
introduced
GST_PAD_FLAG_ACCEPT_TEMPLATE, the performance penalty this
message is refering to (the cascading ACCEPT_CAPS query)
only applies to the cases where !GST_PAD_IS_ACCEPT_TEMPLATE
This commit is contained in:
parent
3fab00b46a
commit
eb9c8bdf66
1 changed files with 5 additions and 4 deletions
|
@ -3077,12 +3077,13 @@ gst_pad_query_accept_caps_default (GstPad * pad, GstQuery * query)
|
|||
|
||||
gst_query_parse_accept_caps (query, &caps);
|
||||
if (!allowed) {
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, pad,
|
||||
"fallback ACCEPT_CAPS query, consider implementing a specialized version");
|
||||
if (GST_PAD_IS_ACCEPT_TEMPLATE (pad))
|
||||
if (GST_PAD_IS_ACCEPT_TEMPLATE (pad)) {
|
||||
allowed = gst_pad_get_pad_template_caps (pad);
|
||||
else
|
||||
} else {
|
||||
GST_CAT_DEBUG_OBJECT (GST_CAT_PERFORMANCE, pad,
|
||||
"fallback ACCEPT_CAPS query, consider implementing a specialized version");
|
||||
allowed = gst_pad_query_caps (pad, caps);
|
||||
}
|
||||
}
|
||||
|
||||
if (allowed) {
|
||||
|
|
Loading…
Reference in a new issue