rtspsrc: Retry SETUP with non-compliant URL resolution on "Bad Request" and "Not...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 6 Oct 2022 12:02:22 +0000 (15:02 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 7 Oct 2022 09:12:00 +0000 (09:12 +0000)
commitbacd92274dccbea39dd9224c393f3ef0c5ded36a
treeec6d6e00a83b3f12f936d055f41e0e3a277626f1
parent93b896eb4edc035d9ccc56a680a34e83aa18bb42
rtspsrc: Retry SETUP with non-compliant URL resolution on "Bad Request" and "Not found"

Various RTSP servers/cameras assume base and control URL to be simply
appended instead of being resolved according to the relative URL
resolution algorithm as mandated by the RTSP specification.

To work around this, try using such a non-compliant control URL if the
server didn't like the URL used in the first SETUP request.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1447
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/922

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3127>
subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c