gstprection: _add_protection_meta() is transfer none
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 13 Jun 2015 16:26:13 +0000 (12:26 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 13 Jun 2015 16:26:13 +0000 (12:26 -0400)
Just like gst_buffer_add_meta() this function should also be
transfer none. This also silence a gi warning about returning
a copy of a non boxed bare structure.

gst/gstprotection.c

index 9d25fb9..c5223ee 100644 (file)
@@ -111,7 +111,7 @@ gst_protection_meta_get_info (void)
  *
  * Attaches protection metadata to a #GstBuffer.
  *
- * Returns: a pointer to the added #GstProtectionMeta if successful; %NULL if
+ * Returns: (transfer none): a pointer to the added #GstProtectionMeta if successful; %NULL if
  * unsuccessful.
  *
  * Since: 1.6