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
This commit is contained in:
Jonas Holmberg 2013-09-26 11:20:05 +02:00 committed by Wim Taymans
parent 74b8da9396
commit 0cd24e2257

View 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;