From 5c31aeaaa4a7a7e29f7e154f2805d5a5afd38fbf Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Thu, 5 Nov 2020 09:11:03 +0100 Subject: [PATCH] doc: player: mention that get_pipeline method needs unref All other methods in docs clearly mention that an unref is needed, so should `get_pipeline()`. #1450 Part-of: --- gst-libs/gst/player/gstplayer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/player/gstplayer.c b/gst-libs/gst/player/gstplayer.c index 04148fa1d1..45705c6710 100644 --- a/gst-libs/gst/player/gstplayer.c +++ b/gst-libs/gst/player/gstplayer.c @@ -3680,7 +3680,9 @@ gst_player_set_mute (GstPlayer * self, gboolean val) * gst_player_get_pipeline: * @player: #GstPlayer instance * - * Returns: (transfer full): The internal playbin instance + * Returns: (transfer full): The internal playbin instance. + * + * The caller should free it with g_object_unref() */ GstElement * gst_player_get_pipeline (GstPlayer * self)