Commit 75598337 authored by Sebastian Pölsterl's avatar Sebastian Pölsterl Committed by Tim-Philipp Müller

rtsp-server: added annotations to indicate type of ownership transfer of return values

https://bugzilla.gnome.org/show_bug.cgi?id=680777
parent 9499be62
......@@ -690,7 +690,7 @@ gst_rtsp_media_collect_streams (GstRTSPMedia * media)
* Create a new stream in @media that provides RTP data on @srcpad.
* @srcpad should be a pad of an element inside @media->element.
*
* Returns: a new #GstRTSPStream that remains valid for as long
* Returns: (transfer none): a new #GstRTSPStream that remains valid for as long
* as @media exists.
*/
GstRTSPStream *
......@@ -747,7 +747,7 @@ gst_rtsp_media_n_streams (GstRTSPMedia * media)
*
* Retrieve the stream with index @idx from @media.
*
* Returns: the #GstRTSPStream at index @idx or %NULL when a stream with
* Returns: (transfer none): the #GstRTSPStream at index @idx or %NULL when a stream with
* that index did not exist.
*/
GstRTSPStream *
......
......@@ -124,7 +124,7 @@ gst_rtsp_session_media_new (const GstRTSPUrl * url, GstRTSPMedia * media)
*
* Configure the transport for @stream to @tr in @media.
*
* Returns: the new or updated #GstRTSPStreamTransport for @stream.
* Returns: (transfer none): the new or updated #GstRTSPStreamTransport for @stream.
*/
GstRTSPStreamTransport *
gst_rtsp_session_media_set_transport (GstRTSPSessionMedia * media,
......@@ -153,8 +153,8 @@ gst_rtsp_session_media_set_transport (GstRTSPSessionMedia * media,
*
* Get a previously created #GstRTSPStreamTransport for the stream at @idx.
*
* Returns: a #GstRTSPStreamTransport that is valid until the session of @media
* is unreffed.
* Returns: (transfer none): a #GstRTSPStreamTransport that is valid until the
* session of @media is unreffed.
*/
GstRTSPStreamTransport *
gst_rtsp_session_media_get_transport (GstRTSPSessionMedia * media, guint idx)
......
......@@ -142,7 +142,7 @@ gst_rtsp_session_set_property (GObject * object, guint propid,
*
* Ownership is taken from @media.
*
* Returns: a new @GstRTSPSessionMedia object.
* Returns: (transfer none): a new @GstRTSPSessionMedia object.
*/
GstRTSPSessionMedia *
gst_rtsp_session_manage_media (GstRTSPSession * sess, const GstRTSPUrl * uri,
......@@ -197,7 +197,7 @@ gst_rtsp_session_release_media (GstRTSPSession * sess,
*
* Get the session media of the @url.
*
* Returns: the configuration for @url in @sess.
* Returns: (transfer none): the configuration for @url in @sess.
*/
GstRTSPSessionMedia *
gst_rtsp_session_get_media (GstRTSPSession * sess, const GstRTSPUrl * url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment