diff --git a/examples/src/bin/decodebin.rs b/examples/src/bin/decodebin.rs index 7e7c6bec0..af2de11f9 100644 --- a/examples/src/bin/decodebin.rs +++ b/examples/src/bin/decodebin.rs @@ -33,9 +33,6 @@ use gst::element_error; use gst::element_warning; use gst::prelude::*; -#[cfg(feature = "v1_10")] -use glib::GBoxed; - use std::env; #[cfg(feature = "v1_10")] use std::sync::{Arc, Mutex}; @@ -60,8 +57,8 @@ struct ErrorMessage { } #[cfg(feature = "v1_10")] -#[derive(Clone, Debug, GBoxed)] -#[gboxed(type_name = "ErrorValue")] +#[derive(Clone, Debug, glib::Boxed)] +#[boxed_type(name = "ErrorValue")] struct ErrorValue(Arc>>); fn example_main() -> Result<(), Error> { diff --git a/examples/src/bin/encodebin.rs b/examples/src/bin/encodebin.rs index aeba090a2..a404457d5 100644 --- a/examples/src/bin/encodebin.rs +++ b/examples/src/bin/encodebin.rs @@ -17,9 +17,6 @@ use gst::element_warning; use gst_pbutils::prelude::*; -#[cfg(feature = "v1_10")] -use glib::GBoxed; - use std::env; #[cfg(feature = "v1_10")] use std::sync::{Arc, Mutex}; @@ -44,8 +41,8 @@ struct ErrorMessage { } #[cfg(feature = "v1_10")] -#[derive(Clone, Debug, GBoxed)] -#[gboxed(type_name = "ErrorValue")] +#[derive(Clone, Debug, glib::Boxed)] +#[boxed_type(name = "ErrorValue")] struct ErrorValue(Arc>>); fn configure_encodebin(encodebin: &gst::Element) {