diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-01-04 14:39:14 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-01-04 14:39:14 +0300 |
commit | de23ea7f2935fd537ce38455ce0907e4fabcfa62 (patch) | |
tree | e916a5f73cc7dbca0650fc1c465183b365a424c0 | |
parent | 0fd63ece7d25cad588ce8959fdf0d1cd1e9c9560 (diff) |
video: Fix compilation after API changes
-rw-r--r-- | video/gif/src/gifenc/imp.rs | 2 | ||||
-rw-r--r-- | video/png/src/pngenc/imp.rs | 2 | ||||
-rw-r--r-- | video/rav1e/src/rav1enc/imp.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index a8ab2046..67a19474 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 efff675e..8d7b3259 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 7a4aa972..08701ee8 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",); |