From: Aurélien Zanelli Date: Tue, 29 Dec 2015 10:06:39 +0000 (+0100) Subject: caps: add 'transfer full' annotation to caps returned by interserction functions X-Git-Tag: 1.10.4~552 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=2ee33237c8530a89820971bff5ff0b6aec3b46aa;p=platform%2Fupstream%2Fgstreamer.git caps: add 'transfer full' annotation to caps returned by interserction functions To make clear caller is responsible to unref them. https://bugzilla.gnome.org/show_bug.cgi?id=759948 --- diff --git a/gst/gstcaps.c b/gst/gstcaps.c index d97bd34..57fb54a 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -1578,7 +1578,7 @@ gst_caps_intersect_zig_zag (GstCaps * caps1, GstCaps * caps2) * Unlike @gst_caps_intersect, the returned caps will be ordered in a similar * fashion as @caps1. * - * Returns: the new #GstCaps + * Returns: (transfer full): the new #GstCaps */ static GstCaps * gst_caps_intersect_first (GstCaps * caps1, GstCaps * caps2) @@ -1649,7 +1649,7 @@ gst_caps_intersect_first (GstCaps * caps1, GstCaps * caps2) * to both @caps1 and @caps2, the order is defined by the #GstCapsIntersectMode * used. * - * Returns: the new #GstCaps + * Returns: (transfer full): the new #GstCaps */ GstCaps * gst_caps_intersect_full (GstCaps * caps1, GstCaps * caps2, @@ -1677,7 +1677,7 @@ gst_caps_intersect_full (GstCaps * caps1, GstCaps * caps2, * Creates a new #GstCaps that contains all the formats that are common * to both @caps1 and @caps2. Defaults to %GST_CAPS_INTERSECT_ZIG_ZAG mode. * - * Returns: the new #GstCaps + * Returns: (transfer full): the new #GstCaps */ GstCaps * gst_caps_intersect (GstCaps * caps1, GstCaps * caps2)