mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-12 12:15:28 +00:00
reqwesthttpsrc: Set offset field on outgoing buffers
This commit is contained in:
parent
367ca9b996
commit
4b4a2798b6
1 changed files with 7 additions and 2 deletions
|
@ -228,7 +228,7 @@ impl ReqwestHttpSrc {
|
|||
uri,
|
||||
body: Some(body),
|
||||
seekable,
|
||||
position: position,
|
||||
position,
|
||||
size,
|
||||
start,
|
||||
stop,
|
||||
|
@ -473,10 +473,15 @@ impl BaseSrcImpl for ReqwestHttpSrc {
|
|||
|
||||
*position += size as u64;
|
||||
|
||||
let buffer = gst::Buffer::from_slice(chunk);
|
||||
let mut buffer = gst::Buffer::from_slice(chunk);
|
||||
|
||||
*body = Some(current_body);
|
||||
|
||||
{
|
||||
let buffer = buffer.get_mut().unwrap();
|
||||
buffer.set_offset(offset);
|
||||
}
|
||||
|
||||
Ok(buffer)
|
||||
}
|
||||
Ok((None, current_body)) => {
|
||||
|
|
Loading…
Reference in a new issue