video: Fix compilation after API changes

This commit is contained in:
Sebastian Dröge 2023-01-04 13:39:14 +02:00
parent 0fd63ece7d
commit de23ea7f29
3 changed files with 3 additions and 3 deletions

View file

@ -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)
}
}

View file

@ -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)
}
}

View file

@ -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",);