mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
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:
parent
74b8da9396
commit
0cd24e2257
1 changed files with 1 additions and 1 deletions
|
@ -576,7 +576,7 @@ not_authorized:
|
||||||
no_media:
|
no_media:
|
||||||
{
|
{
|
||||||
GST_ERROR ("client %p: can't create media", client);
|
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);
|
g_object_unref (factory);
|
||||||
ctx->factory = NULL;
|
ctx->factory = NULL;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue