rtsp-server: Add various Since: 1.14 markers

This commit is contained in:
Sebastian Dröge 2019-04-23 15:01:32 +03:00
parent 802a648723
commit 8d3bef4c1e
4 changed files with 38 additions and 1 deletions

View file

@ -2645,6 +2645,8 @@ gst_rtsp_media_get_status (GstRTSPMedia * media)
* the pipeline must contain all needed transport parts (transport sinks). * the pipeline must contain all needed transport parts (transport sinks).
* *
* Returns: %TRUE on success. * Returns: %TRUE on success.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_media_seek_full (GstRTSPMedia * media, GstRTSPTimeRange * range, gst_rtsp_media_seek_full (GstRTSPMedia * media, GstRTSPTimeRange * range,
@ -4554,7 +4556,7 @@ gst_rtsp_media_get_transport_mode (GstRTSPMedia * media)
} }
/** /**
* gst_rtsp_media_get_seekable: * gst_rtsp_media_seekable:
* @media: a #GstRTSPMedia * @media: a #GstRTSPMedia
* *
* Check if the pipeline for @media seek and up to what point in time, * Check if the pipeline for @media seek and up to what point in time,
@ -4563,6 +4565,8 @@ gst_rtsp_media_get_transport_mode (GstRTSPMedia * media)
* Returns: -1 if the stream is not seekable, 0 if seekable only to the beginning * Returns: -1 if the stream is not seekable, 0 if seekable only to the beginning
* and > 0 to indicate the longest duration between any two random access points. * and > 0 to indicate the longest duration between any two random access points.
* %G_MAXINT64 means any value is possible. * %G_MAXINT64 means any value is possible.
*
* Since: 1.14
*/ */
GstClockTimeDiff GstClockTimeDiff
gst_rtsp_media_seekable (GstRTSPMedia * media) gst_rtsp_media_seekable (GstRTSPMedia * media)
@ -4592,6 +4596,8 @@ gst_rtsp_media_seekable (GstRTSPMedia * media)
* SETUP. * SETUP.
* *
* Returns: %TRUE if the media pipeline has been sucessfully updated. * Returns: %TRUE if the media pipeline has been sucessfully updated.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_media_complete_pipeline (GstRTSPMedia * media, GPtrArray * transports) gst_rtsp_media_complete_pipeline (GstRTSPMedia * media, GPtrArray * transports)

View file

@ -184,6 +184,20 @@ cleanup:
} }
} }
/**
* gst_rtsp_sdp_make_media:
* @sdp: a #GstRTSPMessage
* @info: a #GstSDPInfo
* @stream: a #GstRTSPStream
* @caps: a #GstCaps
* @profile: a #GstRTSPProfile
*
* Creates a #GstSDPMedia from the parameters and stores it in @sdp.
*
* Returns: %TRUE on success
*
* Since: 1.14
*/
gboolean gboolean
gst_rtsp_sdp_make_media (GstSDPMessage * sdp, GstSDPInfo * info, gst_rtsp_sdp_make_media (GstSDPMessage * sdp, GstSDPInfo * info,
GstRTSPStream * stream, GstCaps * caps, GstRTSPProfile profile) GstRTSPStream * stream, GstCaps * caps, GstRTSPProfile profile)

View file

@ -416,6 +416,8 @@ gst_rtsp_session_media_get_transport (GstRTSPSessionMedia * media, guint idx)
* *
* Returns: (transfer full) (element-type GstRTSPStreamTransport): a * Returns: (transfer full) (element-type GstRTSPStreamTransport): a
* list of #GstRTSPStreamTransport, g_ptr_array_unref () after usage. * list of #GstRTSPStreamTransport, g_ptr_array_unref () after usage.
*
* Since: 1.14
*/ */
GPtrArray * GPtrArray *
gst_rtsp_session_media_get_transports (GstRTSPSessionMedia * media) gst_rtsp_session_media_get_transports (GstRTSPSessionMedia * media)

View file

@ -4646,6 +4646,7 @@ gst_rtsp_stream_get_rtcp_socket (GstRTSPStream * stream, GSocketFamily family)
* Get the multicast RTP socket from @stream for a @family. * Get the multicast RTP socket from @stream for a @family.
* *
* Returns: (transfer full) (nullable): the multicast RTP socket or %NULL if no * Returns: (transfer full) (nullable): the multicast RTP socket or %NULL if no
*
* socket could be allocated for @family. Unref after usage * socket could be allocated for @family. Unref after usage
*/ */
GSocket * GSocket *
@ -4681,6 +4682,8 @@ gst_rtsp_stream_get_rtp_multicast_socket (GstRTSPStream * stream,
* *
* Returns: (transfer full) (nullable): the multicast RTCP socket or %NULL if no * Returns: (transfer full) (nullable): the multicast RTCP socket or %NULL if no
* socket could be allocated for @family. Unref after usage * socket could be allocated for @family. Unref after usage
*
* Since: 1.14
*/ */
GSocket * GSocket *
gst_rtsp_stream_get_rtcp_multicast_socket (GstRTSPStream * stream, gst_rtsp_stream_get_rtcp_multicast_socket (GstRTSPStream * stream,
@ -5032,6 +5035,8 @@ gst_rtsp_stream_set_blocked (GstRTSPStream * stream, gboolean blocked)
* Unblocks the dataflow on @stream if it is linked. * Unblocks the dataflow on @stream if it is linked.
* *
* Returns: %TRUE on success * Returns: %TRUE on success
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_stream_unblock_linked (GstRTSPStream * stream) gst_rtsp_stream_unblock_linked (GstRTSPStream * stream)
@ -5248,6 +5253,8 @@ gst_rtsp_stream_query_stop (GstRTSPStream * stream, gint64 * stop)
* Checks whether the individual @stream is seekable. * Checks whether the individual @stream is seekable.
* *
* Returns: %TRUE if @stream is seekable, else %FALSE. * Returns: %TRUE if @stream is seekable, else %FALSE.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_stream_seekable (GstRTSPStream * stream) gst_rtsp_stream_seekable (GstRTSPStream * stream)
@ -5302,6 +5309,8 @@ beach:
* SETUP. * SETUP.
* *
* Returns: %TRUE if the stream has been sucessfully updated. * Returns: %TRUE if the stream has been sucessfully updated.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_stream_complete_stream (GstRTSPStream * stream, gst_rtsp_stream_complete_stream (GstRTSPStream * stream,
@ -5352,6 +5361,8 @@ unallowed_transport:
* seek operations on it. * seek operations on it.
* *
* Returns: %TRUE if the stream contains at least one sink element. * Returns: %TRUE if the stream contains at least one sink element.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_stream_is_complete (GstRTSPStream * stream) gst_rtsp_stream_is_complete (GstRTSPStream * stream)
@ -5376,6 +5387,8 @@ gst_rtsp_stream_is_complete (GstRTSPStream * stream)
* Checks whether the stream is a sender. * Checks whether the stream is a sender.
* *
* Returns: %TRUE if the stream is a sender and %FALSE otherwise. * Returns: %TRUE if the stream is a sender and %FALSE otherwise.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_stream_is_sender (GstRTSPStream * stream) gst_rtsp_stream_is_sender (GstRTSPStream * stream)
@ -5400,6 +5413,8 @@ gst_rtsp_stream_is_sender (GstRTSPStream * stream)
* Checks whether the stream is a receiver. * Checks whether the stream is a receiver.
* *
* Returns: %TRUE if the stream is a receiver and %FALSE otherwise. * Returns: %TRUE if the stream is a receiver and %FALSE otherwise.
*
* Since: 1.14
*/ */
gboolean gboolean
gst_rtsp_stream_is_receiver (GstRTSPStream * stream) gst_rtsp_stream_is_receiver (GstRTSPStream * stream)