reqwesthttpsrc: Set offset field on outgoing buffers

This commit is contained in:
ahamedsajeer.15 2019-07-18 22:16:34 +05:30 committed by Sebastian Dröge
parent 367ca9b996
commit 4b4a2798b6

View file

@ -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)) => {