rtsp-server: Add support for adjusting request response on pipeline errors
authorPeter Stensson <petest@axis.com>
Tue, 21 Jun 2022 07:51:55 +0000 (09:51 +0200)
committerPeter Stensson <petest@axis.com>
Tue, 11 Oct 2022 05:42:28 +0000 (07:42 +0200)
commitec605e7b52e68b4fdb6a2e1db6f2e3d372f723a2
treebacbd52f65c89615751135896433be3a8172900b
parentcddb0e951f1f6efd3046cd01291f245bb760fcc0
rtsp-server: Add support for adjusting request response on pipeline errors

The idea is to give the application the possibility to adjust the error
code when responding to a request. For that purpose the pipeline's bus
messages are emitted to subscribers through a signal handle-message.
The subscribers can then check those messages for errors and adjust
the response error code by overriding the virtual method
adjust_error_code().

Fixes #1294

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2972>
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.c
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client.h
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c
subprojects/gst-rtsp-server/tests/check/gst/client.c
subprojects/gst-rtsp-server/tests/check/gst/media.c