diff options
author | François Laignel <fengalin@free.fr> | 2021-06-03 21:20:54 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-06-03 21:53:16 +0300 |
commit | 8dfc872544b26aa5eaf4b12da7d9c5e0361467ca (patch) | |
tree | e314ee0cfde5930ac50a5bfd985b34d1129362b0 /video/webp | |
parent | 91c8fd146dd477ce744bec944395672719a13ebe (diff) |
use gst::glib where applicable
Diffstat (limited to 'video/webp')
-rw-r--r-- | video/webp/Cargo.toml | 1 | ||||
-rw-r--r-- | video/webp/src/dec/imp.rs | 2 | ||||
-rw-r--r-- | video/webp/src/dec/mod.rs | 3 | ||||
-rw-r--r-- | video/webp/src/lib.rs | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/video/webp/Cargo.toml b/video/webp/Cargo.toml index f103b982a..8a98ed7d4 100644 --- a/video/webp/Cargo.toml +++ b/video/webp/Cargo.toml @@ -8,7 +8,6 @@ description = "WebP Plugin" repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" [dependencies] -glib = { git = "https://github.com/gtk-rs/gtk-rs-core" } once_cell = "1.0" libwebp-sys2 = { version = "0.1.2", features = ["demux", "0_5"] } diff --git a/video/webp/src/dec/imp.rs b/video/webp/src/dec/imp.rs index 0060284a2..88729e4be 100644 --- a/video/webp/src/dec/imp.rs +++ b/video/webp/src/dec/imp.rs @@ -15,7 +15,7 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -use glib::subclass::prelude::*; +use gst::glib; use gst::prelude::*; use gst::subclass::prelude::*; use gst::{gst_log, gst_trace}; diff --git a/video/webp/src/dec/mod.rs b/video/webp/src/dec/mod.rs index f8dff3580..b670a1900 100644 --- a/video/webp/src/dec/mod.rs +++ b/video/webp/src/dec/mod.rs @@ -19,7 +19,8 @@ // // gst-launch-1.0 filesrc location=animated.webp ! webpdec-rs ! videoconvert ! autovideosink -use glib::prelude::*; +use gst::glib; +use gst::prelude::*; mod imp; diff --git a/video/webp/src/lib.rs b/video/webp/src/lib.rs index 648912317..139974f0e 100644 --- a/video/webp/src/lib.rs +++ b/video/webp/src/lib.rs @@ -15,6 +15,8 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. +use gst::glib; + mod dec; fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { |