rtsp-media: Mark out parameters accordingly in gst_rtsp_media_get_rates()
authorSebastian Dröge <sebastian@centricular.com>
Sun, 3 May 2020 13:29:31 +0000 (16:29 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 3 May 2020 13:31:37 +0000 (13:31 +0000)
And the same for gst_rtsp_stream_get_rates().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/118>

gst/rtsp-server/rtsp-media.c
gst/rtsp-server/rtsp-stream.c

index 38c38ae..e99ecae 100644 (file)
@@ -2578,8 +2578,8 @@ conversion_failed:
 /**
  * gst_rtsp_media_get_rates:
  * @media: a #GstRTSPMedia
- * @rate (allow-none): the rate of the current segment
- * @applied_rate (allow-none): the applied_rate of the current segment
+ * @rate: (optional) (out caller-allocates): the rate of the current segment
+ * @applied_rate: (optional) (out caller-allocates): the applied_rate of the current segment
  *
  * Get the rate and applied_rate of the current segment.
  *
index 4114980..c3b3586 100644 (file)
@@ -4282,8 +4282,8 @@ no_stats:
 /**
  * gst_rtsp_stream_get_rates:
  * @stream: a #GstRTSPStream
- * @rate: (allow-none): the configured rate
- * @applied_rate: (allow-none): the configured applied_rate
+ * @rate: (optional) (out caller-allocates): the configured rate
+ * @applied_rate: (optional) (out caller-allocates): the configured applied_rate
  *
  * Retrieve the current rate and/or applied_rate.
  *