curlhttpsrc: add support for range GET
authorAlex Ashley <alex.ashley@youview.com>
Fri, 24 May 2019 16:33:33 +0000 (17:33 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 17 Nov 2019 14:28:25 +0000 (14:28 +0000)
commite9c68347f0c82dc09cc2411196d9a56d60e4591e
treeb9fc502a3743a82b35b14f41a1566a69ade8b73d
parent413c6ec57b6bad7c2e6ccf7c3933ea81b98ad506
curlhttpsrc: add support for range GET

To allow curlhttpsrc to support DASH streams that use the on-demand
profile, it needs to support HTTP Range GETs. In GStreamer, the RANGE
is specified by issuing a GST_FORMAT_BYTES seek to set the start and
end of the range. curlhttpsrc needs to implement seek and set the
appropriate curl options to make it add the Range header to the
request.
ext/curl/gstcurlhttpsrc.c
ext/curl/gstcurlhttpsrc.h
tests/check/elements/curlhttpsrc.c