curlhttpsrc: set BUFFER_OFFSET when creating GstBuffer
authorAlex Ashley <bugzilla@ashley-family.net>
Tue, 5 Feb 2019 17:10:03 +0000 (17:10 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Feb 2019 17:55:13 +0000 (17:55 +0000)
commitdbe0a8cbc3d29d4ef4cc1d5cb2ae01b777d57078
tree25945ea921cf424bcc7047eaf4c14b8c33ad895d
parent2d806477d0b21ca273d43ed67f6fd8ea00c36170
curlhttpsrc: set BUFFER_OFFSET when creating GstBuffer

To make curlhttpsrc behave more like souphttpsrc, set the
BUFFER_OFFSET in its output buffers to match the segment
start. This means that in a HTTP RANGE request, the BUFFER_OFFSET
will match the value in the RANGE request.
ext/curl/gstcurlhttpsrc.c