GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "get pad caps");
- /* If the pad is not negotiable, return the template caps */
+ /* If the parent element is in GST_STATE_NULL, return the template caps */
if (G_UNLIKELY (!GST_PAD_IS_NEGOTIABLE (pad) && GST_PAD_PAD_TEMPLATE (pad))) {
GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad,
- "pad is not negotiable, using pad template");
+ "parent element is in GST_STATE_NULL, using pad templates");
result = gst_caps_ref (GST_PAD_TEMPLATE_CAPS (GST_PAD_PAD_TEMPLATE (pad)));
goto done;
}