mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
rtspsrc: improve error message when unauthorized
Make use of NOT_AUTHORIZED error code instead of falling back to generic READ error. https://bugzilla.gnome.org/show_bug.cgi?id=601733
This commit is contained in:
parent
ba0eeaf8f4
commit
e3ca4d1c86
1 changed files with 4 additions and 0 deletions
|
@ -5717,6 +5717,10 @@ error_response:
|
|||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL), ("%s",
|
||||
response->type_data.response.reason));
|
||||
break;
|
||||
case GST_RTSP_STS_UNAUTHORIZED:
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_AUTHORIZED, (NULL), ("%s",
|
||||
response->type_data.response.reason));
|
||||
break;
|
||||
case GST_RTSP_STS_MOVED_PERMANENTLY:
|
||||
case GST_RTSP_STS_MOVE_TEMPORARILY:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue