client: use 454 when session can't be found
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 27 Nov 2012 11:11:41 +0000 (12:11 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 27 Nov 2012 11:11:41 +0000 (12:11 +0100)
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.

gst/rtsp-server/rtsp-client.c

index 94c5d4c..cd7d6a4 100644 (file)
@@ -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: