client: Reply 400 if media cannot be constructed
authorJonas Holmberg <jonashg@axis.com>
Thu, 26 Sep 2013 09:20:05 +0000 (11:20 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 26 Sep 2013 12:32:43 +0000 (14:32 +0200)
Reply 400 Bad Request instead of 503 Service Unavailable if media
cannot be constructed in SETUP.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=708821

gst/rtsp-server/rtsp-client.c

index f351f24..f4add92 100644 (file)
@@ -576,7 +576,7 @@ not_authorized:
 no_media:
   {
     GST_ERROR ("client %p: can't create media", client);
-    send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, ctx);
+    send_generic_response (client, GST_RTSP_STS_BAD_REQUEST, ctx);
     g_object_unref (factory);
     ctx->factory = NULL;
     return NULL;