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-01-04 14:39:14 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-01-04 14:39:14 +0300
commitde23ea7f2935fd537ce38455ce0907e4fabcfa62 (patch)
treee916a5f73cc7dbca0650fc1c465183b365a424c0 /video
parent0fd63ece7d25cad588ce8959fdf0d1cd1e9c9560 (diff)
video: Fix compilation after API changes
Diffstat (limited to 'video')
-rw-r--r--video/gif/src/gifenc/imp.rs2
-rw-r--r--video/png/src/pngenc/imp.rs2
-rw-r--r--video/rav1e/src/rav1enc/imp.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs
index a8ab2046b..67a19474b 100644
--- a/video/gif/src/gifenc/imp.rs
+++ b/video/gif/src/gifenc/imp.rs
@@ -397,7 +397,7 @@ impl VideoEncoderImpl for GifEnc {
// Currently not using incremental frames -> every frame is a keyframe
frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT);
frame.set_output_buffer(output_buffer);
- self.obj().finish_frame(Some(frame))
+ self.obj().finish_frame(frame)
}
}
diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs
index efff675ea..8d7b3259c 100644
--- a/video/png/src/pngenc/imp.rs
+++ b/video/png/src/pngenc/imp.rs
@@ -259,6 +259,6 @@ impl VideoEncoderImpl for PngEncoder {
// There are no such incremental frames in the png format
frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT);
frame.set_output_buffer(output_buffer);
- self.obj().finish_frame(Some(frame))
+ self.obj().finish_frame(frame)
}
}
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index 7a4aa9720..08701ee81 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -924,7 +924,7 @@ impl Rav1Enc {
}
let output_buffer = gst::Buffer::from_mut_slice(packet_data);
frame.set_output_buffer(output_buffer);
- instance.finish_frame(Some(frame))?;
+ instance.finish_frame(frame)?;
}
Err(data::EncoderStatus::Encoded) => {
gst::debug!(CAT, imp: self, "Encoded but not output frame yet",);