mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
examples: Update for glib::Boxed
derive macro rename
This commit is contained in:
parent
27613a8901
commit
f31aa2efee
2 changed files with 4 additions and 10 deletions
|
@ -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> {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue