event/query/message: Annotate get_structure() return value as nullable

This commit is contained in:
Sebastian Dröge 2017-12-06 13:40:46 +02:00
parent c813b1c276
commit adf304d5af
3 changed files with 9 additions and 9 deletions

View file

@ -333,9 +333,9 @@ had_parent:
* *
* Access the structure of the event. * Access the structure of the event.
* *
* Returns: The structure of the event. The structure is still * Returns: (transfer none) (nullable): The structure of the event. The
* owned by the event, which means that you should not free it and * structure is still owned by the event, which means that you should not free
* that the pointer becomes invalid when you free the event. * it and that the pointer becomes invalid when you free the event.
* *
* MT safe. * MT safe.
*/ */

View file

@ -1144,9 +1144,9 @@ gst_message_new_request_state (GstObject * src, GstState state)
* *
* Access the structure of the message. * Access the structure of the message.
* *
* Returns: (transfer none): The structure of the message. The structure is * Returns: (transfer none) (nullable): The structure of the message. The
* still owned by the message, which means that you should not free it and * structure is still owned by the message, which means that you should not
* that the pointer becomes invalid when you free the message. * free it and that the pointer becomes invalid when you free the message.
* *
* MT safe. * MT safe.
*/ */

View file

@ -705,9 +705,9 @@ had_parent:
* *
* Get the structure of a query. * Get the structure of a query.
* *
* Returns: (transfer none): the #GstStructure of the query. The structure is * Returns: (transfer none) (nullable): the #GstStructure of the query. The
* still owned by the query and will therefore be freed when the query * structure is still owned by the query and will therefore be freed when the
* is unreffed. * query is unreffed.
*/ */
const GstStructure * const GstStructure *
gst_query_get_structure (GstQuery * query) gst_query_get_structure (GstQuery * query)