mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 03:23:16 +00:00
client: use 454 when session can't be found
We should use 454 when a session can't be found because there was no session pool configured in the server. This is not a server configuration problem because the server on which the request is done might not be the same one that will keep the sessions for us and so it does not need to support sessions.
This commit is contained in:
parent
4782d08bdc
commit
a26e9b621e
1 changed files with 2 additions and 2 deletions
|
@ -1271,7 +1271,7 @@ unsupported_transports:
|
|||
no_pool:
|
||||
{
|
||||
GST_ERROR ("client %p: no session pool configured", client);
|
||||
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, state);
|
||||
send_generic_response (client, GST_RTSP_STS_SESSION_NOT_FOUND, state);
|
||||
gst_rtsp_transport_free (ct);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1632,7 +1632,7 @@ handle_request (GstRTSPClient * client, GstRTSPMessage * request)
|
|||
no_pool:
|
||||
{
|
||||
GST_ERROR ("client %p: no pool configured", client);
|
||||
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, &state);
|
||||
send_generic_response (client, GST_RTSP_STS_SESSION_NOT_FOUND, &state);
|
||||
return;
|
||||
}
|
||||
session_not_found:
|
||||
|
|
Loading…
Reference in a new issue