diff --git a/gst/gstpad.c b/gst/gstpad.c index a707385aca..0812c1520b 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2746,11 +2746,11 @@ gst_static_pad_template_get (GstStaticPadTemplate *pad_template) * @name_template: the name template. * @direction: the #GstPadDirection of the template. * @presence: the #GstPadPresence of the pad. - * @caps: a #GstCaps2 set for the template. - * @...: a NULL-terminated list of #GstCaps2. + * @caps: a #GstCaps2 set for the template. The caps are taken ownership of. * * Creates a new pad template with a name according to the given template - * and with the given arguments. + * and with the given arguments. This functions takes ownership of the provided + * caps, so be sure to not use them afterwards. * * Returns: a new #GstPadTemplate. */ diff --git a/gst/gsttypefind.h b/gst/gsttypefind.h index 3080635565..333d33362a 100644 --- a/gst/gsttypefind.h +++ b/gst/gsttypefind.h @@ -96,7 +96,7 @@ guint8 * gst_type_find_peek (GstTypeFind * find, guint size); void gst_type_find_suggest (GstTypeFind * find, guint probability, - const GstCaps2 * caps); + const GstCaps2 * caps); guint64 gst_type_find_get_length (GstTypeFind * find); /* registration interface */ @@ -105,7 +105,7 @@ gboolean gst_type_find_register (GstPlugin * plugin, guint rank, GstTypeFindFunction func, gchar ** extensions, - const GstCaps2 * possible_caps, + const GstCaps2 * possible_caps, gpointer data); /* typefinding interface */