From 8d3bef4c1e8edfc54455a5c4878cac8f39945c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 23 Apr 2019 15:01:32 +0300 Subject: [PATCH] rtsp-server: Add various Since: 1.14 markers --- gst/rtsp-server/rtsp-media.c | 8 +++++++- gst/rtsp-server/rtsp-sdp.c | 14 ++++++++++++++ gst/rtsp-server/rtsp-session-media.c | 2 ++ gst/rtsp-server/rtsp-stream.c | 15 +++++++++++++++ 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 141cba91f9..b238561678 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -2645,6 +2645,8 @@ gst_rtsp_media_get_status (GstRTSPMedia * media) * the pipeline must contain all needed transport parts (transport sinks). * * Returns: %TRUE on success. + * + * Since: 1.14 */ gboolean 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 * * 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 * and > 0 to indicate the longest duration between any two random access points. * %G_MAXINT64 means any value is possible. + * + * Since: 1.14 */ GstClockTimeDiff gst_rtsp_media_seekable (GstRTSPMedia * media) @@ -4592,6 +4596,8 @@ gst_rtsp_media_seekable (GstRTSPMedia * media) * SETUP. * * Returns: %TRUE if the media pipeline has been sucessfully updated. + * + * Since: 1.14 */ gboolean gst_rtsp_media_complete_pipeline (GstRTSPMedia * media, GPtrArray * transports) diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c index 6d552f2212..701cea5c1e 100644 --- a/gst/rtsp-server/rtsp-sdp.c +++ b/gst/rtsp-server/rtsp-sdp.c @@ -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 gst_rtsp_sdp_make_media (GstSDPMessage * sdp, GstSDPInfo * info, GstRTSPStream * stream, GstCaps * caps, GstRTSPProfile profile) diff --git a/gst/rtsp-server/rtsp-session-media.c b/gst/rtsp-server/rtsp-session-media.c index 26b7143988..6b4bb149b2 100644 --- a/gst/rtsp-server/rtsp-session-media.c +++ b/gst/rtsp-server/rtsp-session-media.c @@ -416,6 +416,8 @@ gst_rtsp_session_media_get_transport (GstRTSPSessionMedia * media, guint idx) * * Returns: (transfer full) (element-type GstRTSPStreamTransport): a * list of #GstRTSPStreamTransport, g_ptr_array_unref () after usage. + * + * Since: 1.14 */ GPtrArray * gst_rtsp_session_media_get_transports (GstRTSPSessionMedia * media) diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index ce4c70c89d..68a1202fbf 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -4646,6 +4646,7 @@ gst_rtsp_stream_get_rtcp_socket (GstRTSPStream * stream, GSocketFamily family) * Get the multicast RTP socket from @stream for a @family. * * Returns: (transfer full) (nullable): the multicast RTP socket or %NULL if no + * * socket could be allocated for @family. Unref after usage */ 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 * socket could be allocated for @family. Unref after usage + * + * Since: 1.14 */ GSocket * 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. * * Returns: %TRUE on success + * + * Since: 1.14 */ gboolean 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. * * Returns: %TRUE if @stream is seekable, else %FALSE. + * + * Since: 1.14 */ gboolean gst_rtsp_stream_seekable (GstRTSPStream * stream) @@ -5302,6 +5309,8 @@ beach: * SETUP. * * Returns: %TRUE if the stream has been sucessfully updated. + * + * Since: 1.14 */ gboolean gst_rtsp_stream_complete_stream (GstRTSPStream * stream, @@ -5352,6 +5361,8 @@ unallowed_transport: * seek operations on it. * * Returns: %TRUE if the stream contains at least one sink element. + * + * Since: 1.14 */ gboolean 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. * * Returns: %TRUE if the stream is a sender and %FALSE otherwise. + * + * Since: 1.14 */ gboolean 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. * * Returns: %TRUE if the stream is a receiver and %FALSE otherwise. + * + * Since: 1.14 */ gboolean gst_rtsp_stream_is_receiver (GstRTSPStream * stream)