From f31aa2efee1ff84439ae199dcef58ce841809e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 22 Nov 2021 10:54:52 +0200 Subject: [PATCH] examples: Update for `glib::Boxed` derive macro rename --- examples/src/bin/decodebin.rs | 7 ++----- examples/src/bin/encodebin.rs | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) 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) {