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:
Wim Taymans 2009-02-23 11:42:53 +01:00
parent c4d53e9cc2
commit a08d75b892

View file

@ -2536,20 +2536,25 @@ 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 = res = gst_rtsp_ext_list_receive_request (src->extensions, request);
gst_rtsp_message_init_response (&response, GST_RTSP_STS_OK, "OK",
request);
if (res < 0)
goto send_error;
GST_DEBUG_OBJECT (src, "replying with OK"); if (res == GST_RTSP_ENOTIMPL) {
/* default implementation, send OK */
res =
gst_rtsp_message_init_response (&response, GST_RTSP_STS_OK, "OK",
request);
if (res < 0)
goto send_error;
if (src->debug) GST_DEBUG_OBJECT (src, "replying with OK");
gst_rtsp_message_dump (&response);
res = gst_rtspsrc_connection_send (src, &response, NULL); if (src->debug)
if (res < 0) gst_rtsp_message_dump (&response);
goto send_error;
res = gst_rtspsrc_connection_send (src, &response, NULL);
if (res < 0)
goto send_error;
}
return GST_RTSP_OK; return GST_RTSP_OK;