message: fix annotation of parse_stream_{collection,streams_selected}
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 13 Jul 2016 13:43:21 +0000 (15:43 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 15 Jul 2016 11:57:49 +0000 (12:57 +0100)
gst_structure_id_get() returns a new reference so the returned object is
actually (transfer full).

The unit tests was already unreffing the objects.

https://bugzilla.gnome.org/show_bug.cgi?id=768776

gst/gstmessage.c

index b3f09d0..0e7c1bc 100644 (file)
@@ -2560,7 +2560,7 @@ gst_message_new_stream_collection (GstObject * src,
 /**
  * gst_message_parse_stream_collection:
  * @message: a #GstMessage of type %GST_MESSAGE_STREAM_COLLECTION
- * @collection: (out) (allow-none) (transfer none): A location where to store a
+ * @collection: (out) (allow-none) (transfer full): A location where to store a
  *  pointer to the #GstStreamCollection, or %NULL
  *
  * Parses a stream-collection message. 
@@ -2708,7 +2708,7 @@ gst_message_streams_selected_get_stream (GstMessage * msg, guint idx)
 /**
  * gst_message_parse_streams_selected:
  * @message: a #GstMessage of type %GST_MESSAGE_STREAMS_SELECTED
- * @collection: (out) (allow-none) (transfer none): A location where to store a
+ * @collection: (out) (allow-none) (transfer full): A location where to store a
  *  pointer to the #GstStreamCollection, or %NULL
  *
  * Parses a streams-selected message.