From 6de1ca7ed3476cd29b3bfc2ca0b83b858c537603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 22 Sep 2020 14:40:07 +0300 Subject: [PATCH] video/gif: Update gif dependency to 0.11 --- video/gif/Cargo.toml | 2 +- video/gif/src/gifenc.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/video/gif/Cargo.toml b/video/gif/Cargo.toml index 0d650c73..88ca28a8 100644 --- a/video/gif/Cargo.toml +++ b/video/gif/Cargo.toml @@ -12,7 +12,7 @@ glib = { git = "https://github.com/gtk-rs/glib" } gstreamer = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } gstreamer-video = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } gstreamer-check = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } -gif = "0.10" +gif = "0.11" atomic_refcell = "0.1" once_cell = "1" diff --git a/video/gif/src/gifenc.rs b/video/gif/src/gifenc.rs index 1f1e25ac..7d0ec991 100644 --- a/video/gif/src/gifenc.rs +++ b/video/gif/src/gifenc.rs @@ -7,7 +7,6 @@ // except according to those terms. use atomic_refcell::AtomicRefCell; -use gif::SetParameter; use glib::subclass; use glib::subclass::prelude::*; use gst::subclass::prelude::*; @@ -123,8 +122,8 @@ impl State { ) .expect("Failed to initialize GIF encoder"); match settings.repeat { - -1 => encoder.set(gif::Repeat::Infinite), - _ => encoder.set(gif::Repeat::Finite(settings.repeat as u16)), + -1 => encoder.set_repeat(gif::Repeat::Infinite), + _ => encoder.set_repeat(gif::Repeat::Finite(settings.repeat as u16)), } .expect("Failed to configure encoder"); self.context = Some(encoder);