mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
Call new receive_request method
Call the receive_request extension methods so that extensions can handle the server request if they want.
This commit is contained in:
parent
c4d53e9cc2
commit
a08d75b892
1 changed files with 16 additions and 11 deletions
|
@ -2536,6 +2536,10 @@ gst_rtspsrc_handle_request (GstRTSPSrc * src, GstRTSPMessage * request)
|
||||||
if (src->debug)
|
if (src->debug)
|
||||||
gst_rtsp_message_dump (request);
|
gst_rtsp_message_dump (request);
|
||||||
|
|
||||||
|
res = gst_rtsp_ext_list_receive_request (src->extensions, request);
|
||||||
|
|
||||||
|
if (res == GST_RTSP_ENOTIMPL) {
|
||||||
|
/* default implementation, send OK */
|
||||||
res =
|
res =
|
||||||
gst_rtsp_message_init_response (&response, GST_RTSP_STS_OK, "OK",
|
gst_rtsp_message_init_response (&response, GST_RTSP_STS_OK, "OK",
|
||||||
request);
|
request);
|
||||||
|
@ -2550,6 +2554,7 @@ gst_rtspsrc_handle_request (GstRTSPSrc * src, GstRTSPMessage * request)
|
||||||
res = gst_rtspsrc_connection_send (src, &response, NULL);
|
res = gst_rtspsrc_connection_send (src, &response, NULL);
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
goto send_error;
|
goto send_error;
|
||||||
|
}
|
||||||
|
|
||||||
return GST_RTSP_OK;
|
return GST_RTSP_OK;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue