From 4769a2ab97533bf4d33a24ba84a34c063bd73d19 Mon Sep 17 00:00:00 2001 From: Xabier Rodriguez Calvar Date: Thu, 31 Mar 2022 14:59:01 +0200 Subject: [PATCH] playbin2: improve transference doc of get-*-pad actions Part-of: --- .../gst-plugins-base/gst/playback/gstplaybin2.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c b/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c index 310ae41a2c..5a4ca4404c 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c +++ b/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c @@ -1261,7 +1261,9 @@ gst_play_bin_class_init (GstPlayBinClass * klass) * This pad can be used for notifications of caps changes, stream-specific * queries, etc. * - * Returns: a #GstPad, or NULL when the stream number does not exist. + * Returns: (transfer full) (nullable): a #GstPad, or NULL when the + * stream number does not exist. The #GstPad must be unreffed after + * usage. */ gst_play_bin_signals[SIGNAL_GET_VIDEO_PAD] = g_signal_new ("get-video-pad", G_TYPE_FROM_CLASS (klass), @@ -1278,7 +1280,9 @@ gst_play_bin_class_init (GstPlayBinClass * klass) * This pad can be used for notifications of caps changes, stream-specific * queries, etc. * - * Returns: a #GstPad, or NULL when the stream number does not exist. + * Returns: (transfer full) (nullable): a #GstPad, or NULL when the + * stream number does not exist. The #GstPad must be unreffed after + * usage. */ gst_play_bin_signals[SIGNAL_GET_AUDIO_PAD] = g_signal_new ("get-audio-pad", G_TYPE_FROM_CLASS (klass), @@ -1295,7 +1299,9 @@ gst_play_bin_class_init (GstPlayBinClass * klass) * This pad can be used for notifications of caps changes, stream-specific * queries, etc. * - * Returns: a #GstPad, or NULL when the stream number does not exist. + * Returns: (transfer full) (nullable): a #GstPad, or NULL when the + * stream number does not exist. The #GstPad must be unreffed after + * usage. */ gst_play_bin_signals[SIGNAL_GET_TEXT_PAD] = g_signal_new ("get-text-pad", G_TYPE_FROM_CLASS (klass),