rtspsrc: Also consider "Method Not Valid In This State" error in broken control URL...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 31 Jan 2023 14:56:18 +0000 (16:56 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 2 Feb 2023 00:26:03 +0000 (00:26 +0000)
Some servers send a 455 error instead of any reasonable error when using
a correctly constructed control URL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3864>

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

index 2f98052..332ef18 100644 (file)
@@ -7720,6 +7720,7 @@ gst_rtspsrc_setup_streams_start (GstRTSPSrc * src, gboolean async)
           goto retry;
       case GST_RTSP_STS_BAD_REQUEST:
       case GST_RTSP_STS_NOT_FOUND:
+      case GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE:
         /* 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.