diff options
author | François Laignel <fengalin@free.fr> | 2021-04-20 15:57:40 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-20 19:19:58 +0300 |
commit | 27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (patch) | |
tree | 8837a6ede376d71ede06dfa553250b19de618b16 /video/gif | |
parent | e0b577fe1d96779cac8b2bdd365f84c008232246 (diff) |
fix-getters-def 0.3.0 pass
Diffstat (limited to 'video/gif')
-rw-r--r-- | video/gif/src/gifenc/imp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 4f28d5b39..9df54983f 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -170,7 +170,7 @@ impl ObjectImpl for GifEnc { } } - fn get_property(&self, _obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value { + fn property(&self, _obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value { match pspec.name() { "repeat" => { let settings = self.settings.lock().unwrap(); @@ -424,7 +424,7 @@ impl GifEnc { /// Helper method that takes a gstreamer video-frame and copies it into a /// tightly packed rgb(a) buffer, ready for consumption by the gif encoder. -fn get_tightly_packed_framebuffer(frame: &gst_video::VideoFrameRef<&gst::BufferRef>) -> Vec<u8> { +fn tightly_packed_framebuffer(frame: &gst_video::VideoFrameRef<&gst::BufferRef>) -> Vec<u8> { assert_eq!(frame.n_planes(), 1); // RGB and RGBA are tightly packed let line_size = (frame.info().width() * frame.n_components()) as usize; let line_stride = frame.info().stride()[0] as usize; |