From 0cd24e2257fa191c609757dc61a4bc3195408c71 Mon Sep 17 00:00:00 2001 From: Jonas Holmberg Date: Thu, 26 Sep 2013 11:20:05 +0200 Subject: [PATCH] client: Reply 400 if media cannot be constructed 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index f351f24..f4add92 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -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; -- 2.7.4