souphttpsrc: don't fail when seeking past the end of the content
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 19 Apr 2018 11:57:26 +0000 (13:57 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 10 Jul 2020 11:41:55 +0000 (11:41 +0000)
commit83beb9211bb9c475998d6e2a6ce8fb339d63f109
tree62872eb3f17577ee13e0ba8aaa5d0cba9e3e591a
parentd4b50d79152c7ceead63342e0465a6d4c1518e7e
souphttpsrc: don't fail when seeking past the end of the content

Range errors are already turned into EOS when the size is not known.
Do the same thing if the request as outside the known content size.

This can be triggered by seeking in a queue2:
- Ensure that the range containing the end of the file is available.
- Seek into this range from a different range.
- queue2 creates a seek event with start=<file-size>
- this results in a "Requested Range Not Satisfiable" error

Fixes #452

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/385>
ext/soup/gstsouphttpsrc.c