From 3ca85189fdef338fee521a62e59a0ff014a7a044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 31 Jan 2023 16:56:18 +0200 Subject: [PATCH] rtspsrc: Also consider "Method Not Valid In This State" error in broken control URL handling workaround Some servers send a 455 error instead of any reasonable error when using a correctly constructed control URL. Part-of: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index 2f98052f6a..332ef18088 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -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.