Update for Buffer / Memory API changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1409>
This commit is contained in:
Sebastian Dröge 2023-12-17 14:07:12 +02:00
parent 68b9dadf07
commit 763739e3ae
6 changed files with 8 additions and 12 deletions

View file

@ -2371,12 +2371,9 @@ impl FMP4Mux {
// Copy metas from the first actual buffer to the fragment header. This allows
// getting things like the reference timestamp meta or the timecode meta to identify
// the fragment.
let _ = interleaved_buffers[0].buffer.copy_into(
buffer,
gst::BufferCopyFlags::META,
0,
None,
);
let _ = interleaved_buffers[0]
.buffer
.copy_into(buffer, gst::BufferCopyFlags::META, ..);
}
let moof_offset = state.current_offset

View file

@ -92,8 +92,7 @@ impl RegEx {
gst::BufferCopyFlags::FLAGS
| gst::BufferCopyFlags::TIMESTAMPS
| gst::BufferCopyFlags::META,
0,
None,
..,
);
}

View file

@ -332,7 +332,7 @@ impl MccEnc {
let mut buf = gst::Buffer::from_mut_slice(outbuf);
buffer
.copy_into(buf.get_mut().unwrap(), gst::BUFFER_COPY_METADATA, 0, None)
.copy_into(buf.get_mut().unwrap(), gst::BUFFER_COPY_METADATA, ..)
.expect("Failed to copy buffer metadata");
drop(state);

View file

@ -224,7 +224,7 @@ impl State {
// Copy the metadata of the first buffer
first_buf
.copy_into(buf_mut, gst::BUFFER_COPY_METADATA, 0, None)
.copy_into(buf_mut, gst::BUFFER_COPY_METADATA, ..)
.expect("Failed to copy buffer metadata");
buf_mut.set_pts(first_buf.pts());
buffer

View file

@ -207,7 +207,7 @@ impl RoundedCorners {
let copy_flags = gst::BufferCopyFlags::FLAGS
| gst::BufferCopyFlags::TIMESTAMPS
| gst::BufferCopyFlags::MEMORY;
let mut buf = buf.copy_region(copy_flags, 0, None).unwrap();
let mut buf = buf.copy_region(copy_flags, ..).unwrap();
let mut_buf = buf.make_mut();
gst_video::VideoMeta::add_full(
mut_buf,

View file

@ -309,7 +309,7 @@ impl VideoAggregatorImpl for VideoCompare {
// output the reference buffer
outbuf.remove_all_memory();
buffer
.copy_into(outbuf, gst::BufferCopyFlags::all(), 0, None)
.copy_into(outbuf, gst::BufferCopyFlags::all(), ..)
.map_err(|_| gst::FlowError::Error)?;
// Use current frame as the reference to the comparison