rtsp-server: Add since marker for adjust_error_code

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3157>
This commit is contained in:
Peter Stensson 2022-10-11 14:55:48 +02:00 committed by GStreamer Marge Bot
parent 9ebc3f2316
commit 11982bcaba

View file

@ -178,6 +178,19 @@ struct _GstRTSPClientClass {
GstRTSPStatusCode (*pre_announce_request) (GstRTSPClient *client, GstRTSPContext *ctx);
GstRTSPStatusCode (*pre_record_request) (GstRTSPClient *client, GstRTSPContext *ctx);
/**
* GstRTSPClientClass::adjust_error_code:
* @client: a #GstRTSPClient
* @ctx: a #GstRTSPContext
* @code: a #GstRTSPStatusCode
*
* Called before sending error response to give the application the
* possibility to adjust the error code.
*
* Returns: a #GstRTSPStatusCode, containing the adjusted error code.
*
* Since: 1.22
*/
GstRTSPStatusCode (*adjust_error_code) (GstRTSPClient *client, GstRTSPContext *ctx, GstRTSPStatusCode code);
/*< private >*/