diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-12-06 13:40:46 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-12-06 13:40:46 +0200 |
commit | adf304d5af0ec43b9d3ec891c96c81da449bfc9d (patch) | |
tree | c9b821d15eba5523120c3702132f20cdead25701 | |
parent | c813b1c276b7982ba436f6ca9322b91f2160e9f2 (diff) |
event/query/message: Annotate get_structure() return value as nullable
-rw-r--r-- | gst/gstevent.c | 6 | ||||
-rw-r--r-- | gst/gstmessage.c | 6 | ||||
-rw-r--r-- | gst/gstquery.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/gst/gstevent.c b/gst/gstevent.c index 207388acc..71cfab001 100644 --- a/gst/gstevent.c +++ b/gst/gstevent.c @@ -333,9 +333,9 @@ had_parent: * * Access the structure of the event. * - * Returns: The structure of the event. The structure is still - * owned by the event, which means that you should not free it and - * that the pointer becomes invalid when you free the event. + * Returns: (transfer none) (nullable): The structure of the event. The + * structure is still owned by the event, which means that you should not free + * it and that the pointer becomes invalid when you free the event. * * MT safe. */ diff --git a/gst/gstmessage.c b/gst/gstmessage.c index 5f36662e5..33cf22042 100644 --- a/gst/gstmessage.c +++ b/gst/gstmessage.c @@ -1144,9 +1144,9 @@ gst_message_new_request_state (GstObject * src, GstState state) * * Access the structure of the message. * - * Returns: (transfer none): The structure of the message. The structure is - * still owned by the message, which means that you should not free it and - * that the pointer becomes invalid when you free the message. + * Returns: (transfer none) (nullable): The structure of the message. The + * structure is still owned by the message, which means that you should not + * free it and that the pointer becomes invalid when you free the message. * * MT safe. */ diff --git a/gst/gstquery.c b/gst/gstquery.c index dd4929be0..30180cf7b 100644 --- a/gst/gstquery.c +++ b/gst/gstquery.c @@ -705,9 +705,9 @@ had_parent: * * Get the structure of a query. * - * Returns: (transfer none): the #GstStructure of the query. The structure is - * still owned by the query and will therefore be freed when the query - * is unreffed. + * Returns: (transfer none) (nullable): the #GstStructure of the query. The + * structure is still owned by the query and will therefore be freed when the + * query is unreffed. */ const GstStructure * gst_query_get_structure (GstQuery * query) |