gstfunnel: avoid access of freed pad
[platform/upstream/gstreamer.git] / gst / gstquery.c
index ec3f841..5fadc9d 100644 (file)
@@ -2197,7 +2197,7 @@ gst_query_parse_accept_caps_result (GstQuery * query, gboolean * result)
  *
  * 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
@@ -2210,6 +2210,10 @@ gst_query_parse_accept_caps_result (GstQuery * query, gboolean * result)
  * 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
@@ -2362,7 +2366,7 @@ gst_query_set_toc (GstQuery * query, GstToc * toc, const gchar * extend_uid)
   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);
 
@@ -2374,7 +2378,7 @@ gst_query_set_toc (GstQuery * query, GstToc * toc, const gchar * extend_uid)
   }
 
   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;
@@ -2406,8 +2410,8 @@ gst_query_parse_toc (GstQuery * query, GstToc ** toc, gchar ** extend_uid)
   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);
 }