*
* Constructs a new query object for querying the caps.
*
- * The CAPS query should return the* allowable caps for a pad in the context
+ * The CAPS query should return the allowable caps for a pad in the context
* of the element's state, its link to other elements, and the devices or files
* it has opened. These caps must be a subset of the pad template caps. In the
* NULL state with no links, the CAPS query should ideally return the same caps
* the CAPS query should return the most specific caps it reasonably can, since this
* helps with autoplugging.
*
+ * The @filter is used to restrict the result caps, only the caps matching
+ * @filter should be returned from the CAPS query. Specifying a filter might
+ * greatly reduce the amount of processing an element needs to do.
+ *
* Free-function: gst_query_unref
*
* Returns: (transfer full): a new #GstQuery
g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_TOC);
g_return_if_fail (toc != NULL);
- structure = _gst_toc_to_structure (toc);
+ structure = __gst_toc_to_structure (toc);
g_return_if_fail (structure != NULL);
}
if (extend_uid != NULL)
- _gst_toc_structure_set_extend_uid (structure, extend_uid);
+ __gst_toc_structure_set_extend_uid (structure, extend_uid);
gst_structure_set_parent_refcount (structure, &(query->mini_object.refcount));
GST_QUERY_STRUCTURE (query) = structure;
g_return_if_fail (structure != NULL);
if (toc != NULL)
- *toc = _gst_toc_from_structure (structure);
+ *toc = __gst_toc_from_structure (structure);
if (extend_uid != NULL)
- *extend_uid = _gst_toc_structure_get_extend_uid (structure);
+ *extend_uid = __gst_toc_structure_get_extend_uid (structure);
}