Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-12-17 15:07:12 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-12-17 15:07:12 +0300
commit763739e3ae7e4c76298c68ebb0ce6fa07ebd441f (patch)
tree51c4fb847bdb50d4944be2cae556c6fb2e7e01a6 /video
parent68b9dadf077cbf52ff77c80845ee50f1307dca64 (diff)
Update for `Buffer` / `Memory` API changes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1409>
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/mcc_enc/imp.rs2
-rw-r--r--video/closedcaption/src/scc_enc/imp.rs2
-rw-r--r--video/videofx/src/border/imp.rs2
-rw-r--r--video/videofx/src/videocompare/imp.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs
index 202d4fb1f..30fdf648a 100644
--- a/video/closedcaption/src/mcc_enc/imp.rs
+++ b/video/closedcaption/src/mcc_enc/imp.rs
@@ -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);
diff --git a/video/closedcaption/src/scc_enc/imp.rs b/video/closedcaption/src/scc_enc/imp.rs
index bb3940494..cd45d0f4e 100644
--- a/video/closedcaption/src/scc_enc/imp.rs
+++ b/video/closedcaption/src/scc_enc/imp.rs
@@ -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
diff --git a/video/videofx/src/border/imp.rs b/video/videofx/src/border/imp.rs
index 581efedee..e2175bd9a 100644
--- a/video/videofx/src/border/imp.rs
+++ b/video/videofx/src/border/imp.rs
@@ -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,
diff --git a/video/videofx/src/videocompare/imp.rs b/video/videofx/src/videocompare/imp.rs
index d8cf983b4..3002d447d 100644
--- a/video/videofx/src/videocompare/imp.rs
+++ b/video/videofx/src/videocompare/imp.rs
@@ -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