rtspsrc: Consider "451: Parameter Not Understood" when handling broken control urls
authorMatt Feury <mattfeury@gmail.com>
Mon, 6 Mar 2023 19:56:08 +0000 (19:56 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 7 Mar 2023 18:15:25 +0000 (18:15 +0000)
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/4129>

subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c

index 81024d2..c431447 100644 (file)
@@ -7721,6 +7721,7 @@ gst_rtspsrc_setup_streams_start (GstRTSPSrc * src, gboolean async)
       case GST_RTSP_STS_BAD_REQUEST:
       case GST_RTSP_STS_NOT_FOUND:
       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
          * URLs that are not resolved correctly but instead are just appended.
          * See e.g.