mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-07 16:08:55 +00:00
video: Fix compilation after API changes
This commit is contained in:
parent
0fd63ece7d
commit
de23ea7f29
3 changed files with 3 additions and 3 deletions
|
@ -397,7 +397,7 @@ impl VideoEncoderImpl for GifEnc {
|
||||||
// Currently not using incremental frames -> every frame is a keyframe
|
// Currently not using incremental frames -> every frame is a keyframe
|
||||||
frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT);
|
frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT);
|
||||||
frame.set_output_buffer(output_buffer);
|
frame.set_output_buffer(output_buffer);
|
||||||
self.obj().finish_frame(Some(frame))
|
self.obj().finish_frame(frame)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -259,6 +259,6 @@ impl VideoEncoderImpl for PngEncoder {
|
||||||
// There are no such incremental frames in the png format
|
// There are no such incremental frames in the png format
|
||||||
frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT);
|
frame.set_flags(gst_video::VideoCodecFrameFlags::SYNC_POINT);
|
||||||
frame.set_output_buffer(output_buffer);
|
frame.set_output_buffer(output_buffer);
|
||||||
self.obj().finish_frame(Some(frame))
|
self.obj().finish_frame(frame)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -924,7 +924,7 @@ impl Rav1Enc {
|
||||||
}
|
}
|
||||||
let output_buffer = gst::Buffer::from_mut_slice(packet_data);
|
let output_buffer = gst::Buffer::from_mut_slice(packet_data);
|
||||||
frame.set_output_buffer(output_buffer);
|
frame.set_output_buffer(output_buffer);
|
||||||
instance.finish_frame(Some(frame))?;
|
instance.finish_frame(frame)?;
|
||||||
}
|
}
|
||||||
Err(data::EncoderStatus::Encoded) => {
|
Err(data::EncoderStatus::Encoded) => {
|
||||||
gst::debug!(CAT, imp: self, "Encoded but not output frame yet",);
|
gst::debug!(CAT, imp: self, "Encoded but not output frame yet",);
|
||||||
|
|
Loading…
Reference in a new issue