mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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.
This commit is contained in:
parent
2d806477d0
commit
dbe0a8cbc3
1 changed files with 1 additions and 0 deletions
|
@ -979,6 +979,7 @@ retry:
|
|||
src->buffer_len, src->uri);
|
||||
*outbuf = gst_buffer_new_allocate (NULL, src->buffer_len, NULL);
|
||||
gst_buffer_fill (*outbuf, 0, src->buffer, src->buffer_len);
|
||||
GST_BUFFER_OFFSET (*outbuf) = basesrc->segment.position;
|
||||
|
||||
g_free (src->buffer);
|
||||
src->buffer = NULL;
|
||||
|
|
Loading…
Reference in a new issue