gstpad: only warn on performance penalty if not using the template caps

After b76ecfd9 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
parent 3fab00b4
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment