player: Fix get_current_subtitle_track annotation
authorPhilippe Normand <philn@igalia.com>
Thu, 5 Nov 2020 17:14:22 +0000 (17:14 +0000)
committerPhilippe Normand <philn@igalia.com>
Wed, 25 Nov 2020 11:30:16 +0000 (11:30 +0000)
As the info returned is a new object, the annotation should be transfer-full,
similarly to the get_current_{audio,video}_track() implementations.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1775>

gst-libs/gst/player/gstplayer.c

index 45705c6..b72c8de 100644 (file)
@@ -3793,7 +3793,7 @@ gst_player_get_current_video_track (GstPlayer * self)
  *
  * A Function to get current subtitle #GstPlayerSubtitleInfo instance.
  *
- * Returns: (transfer none): current subtitle track.
+ * Returns: (transfer full): current subtitle track.
  *
  * The caller should free it with g_object_unref()
  */