examples: Update for glib::Boxed derive macro rename

This commit is contained in:
Sebastian Dröge 2021-11-22 10:54:52 +02:00
parent 27613a8901
commit f31aa2efee
2 changed files with 4 additions and 10 deletions

View file

@ -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<Mutex<Option<Error>>>);
fn example_main() -> Result<(), Error> {

View file

@ -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<Mutex<Option<Error>>>);
fn configure_encodebin(encodebin: &gst::Element) {