summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn Suijten <marijns95@gmail.com>2021-04-27 11:58:58 +0200
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-09-19 12:29:44 +0000
commit7dc976885bd80f37b9e711638b9e72706debc9b8 (patch)
treea82fd79f4d040b1ddb1f3a7ce5f428498b873c8b
parent71c4355b1c70f791af64fc32e56fa87834bc0314 (diff)
downloadgstreamer-plugins-bad-7dc976885bd80f37b9e711638b9e72706debc9b8.tar.gz
play: Add missing nullable annotations
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2197>
-rw-r--r--gst-libs/gst/play/gstplay-media-info.c2
-rw-r--r--gst-libs/gst/play/gstplay.c13
2 files changed, 8 insertions, 7 deletions
diff --git a/gst-libs/gst/play/gstplay-media-info.c b/gst-libs/gst/play/gstplay-media-info.c
index c1f357eae..9a55ed982 100644
--- a/gst-libs/gst/play/gstplay-media-info.c
+++ b/gst-libs/gst/play/gstplay-media-info.c
@@ -307,7 +307,7 @@ gst_play_audio_info_class_init (GstPlayAudioInfoClass * klass)
* gst_play_audio_info_get_language:
* @info: a #GstPlayAudioInfo
*
- * Returns: the language of the stream, or NULL if unknown.
+ * Returns (nullable): the language of the stream, or NULL if unknown.
* Since: 1.20
*/
const gchar *
diff --git a/gst-libs/gst/play/gstplay.c b/gst-libs/gst/play/gstplay.c
index 300a806e5..cceea171f 100644
--- a/gst-libs/gst/play/gstplay.c
+++ b/gst-libs/gst/play/gstplay.c
@@ -3339,7 +3339,7 @@ gst_play_get_media_info (GstPlay * self)
*
* A Function to get current audio #GstPlayAudioInfo instance.
*
- * Returns: (transfer full): current audio track.
+ * Returns: (transfer full) (nullable): current audio track.
*
* The caller should free it with g_object_unref()
* Since: 1.20
@@ -3372,7 +3372,7 @@ gst_play_get_current_audio_track (GstPlay * self)
*
* A Function to get current video #GstPlayVideoInfo instance.
*
- * Returns: (transfer full): current video track.
+ * Returns: (transfer full) (nullable): current video track.
*
* The caller should free it with g_object_unref()
* Since: 1.20
@@ -3405,7 +3405,7 @@ gst_play_get_current_video_track (GstPlay * self)
*
* A Function to get current subtitle #GstPlaySubtitleInfo instance.
*
- * Returns: (transfer full): current subtitle track.
+ * Returns: (transfer full) (nullable): current subtitle track.
*
* The caller should free it with g_object_unref()
* Since: 1.20
@@ -3651,7 +3651,7 @@ gst_play_set_subtitle_track_enabled (GstPlay * self, gboolean enabled)
/**
* gst_play_set_visualization:
* @play: #GstPlay instance
- * @name: visualization element obtained from
+ * @name (nullable): visualization element obtained from
* #gst_play_visualizations_get()
*
* Returns: %TRUE if the visualizations was set correctly. Otherwise,
@@ -3692,7 +3692,8 @@ error_no_element:
* gst_play_get_current_visualization:
* @play: #GstPlay instance
*
- * Returns: (transfer full): Name of the currently enabled visualization.
+ * Returns: (transfer full) (nullable): Name of the currently enabled
+ * visualization.
* g_free() after usage.
* Since: 1.20
*/
@@ -4440,7 +4441,7 @@ gst_play_config_get_seek_accurate (const GstStructure * config)
* - pixel-aspect-ratio of type GST_TYPE_FRACTION
* Except for GST_PLAY_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1
*
- * Returns: (transfer full): Current video snapshot sample or %NULL on failure
+ * Returns: (transfer full) (nullable): Current video snapshot sample or %NULL on failure
*
* Since: 1.20
*/