rtspsrc: Consider "451: Parameter Not Understood" when handling broken control urls

similar to https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3854

it seems that some implementations return this when
the server does not implement URL handling correctly

this fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2334

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4123>
This commit is contained in:
Matt Feury 2023-03-06 19:56:08 +00:00
parent b6e45d0de8
commit 224030ff0c

View file

@ -7721,6 +7721,7 @@ gst_rtspsrc_setup_streams_start (GstRTSPSrc * src, gboolean async)
case GST_RTSP_STS_BAD_REQUEST: case GST_RTSP_STS_BAD_REQUEST:
case GST_RTSP_STS_NOT_FOUND: case GST_RTSP_STS_NOT_FOUND:
case GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE: case GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE:
case GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD:
/* There are various non-compliant servers that don't require control /* There are various non-compliant servers that don't require control
* URLs that are not resolved correctly but instead are just appended. * URLs that are not resolved correctly but instead are just appended.
* See e.g. * See e.g.