summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-01-31 16:56:18 +0200
committerTim-Philipp Müller <tim@centricular.com>2023-02-01 14:17:21 +0000
commit37999359a9bd87cec3e38b970a69b4dbd2d9d437 (patch)
treea18544cf09018125424e59ca3e52c61b9b6d6061
parentf3b8f1d5b028bf1a0789766f638762b7fea9f446 (diff)
downloadgstreamer-37999359a9bd87cec3e38b970a69b4dbd2d9d437.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3861>
-rw-r--r--subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c
index faf3b763aa..c86f1ac18d 100644
--- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c
+++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c
@@ -7581,6 +7581,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.