diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-22 12:04:26 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-22 12:04:26 +0300 |
commit | 86f422592b160f9aff2eb58c5ab05a0612c152e5 (patch) | |
tree | cd15a1e6f8a9f5344e50bc4f450d23dc614579f8 /generic | |
parent | 651ea7de5ff0947ed3e6641a65e9b05d1c36a74a (diff) |
Update for `glib::Enum` / `glib::Boxed` / `glib::flags!` macro renames
Diffstat (limited to 'generic')
-rw-r--r-- | generic/fmp4/src/fmp4mux/mod.rs | 4 | ||||
-rw-r--r-- | generic/threadshare/tests/pad.rs | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/generic/fmp4/src/fmp4mux/mod.rs b/generic/fmp4/src/fmp4mux/mod.rs index 914d7875..eadfb017 100644 --- a/generic/fmp4/src/fmp4mux/mod.rs +++ b/generic/fmp4/src/fmp4mux/mod.rs @@ -108,9 +108,9 @@ pub(crate) struct FragmentOffset { } #[allow(clippy::upper_case_acronyms)] -#[derive(Debug, Clone, Copy, PartialEq, Eq, glib::GEnum)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, glib::Enum)] #[repr(i32)] -#[genum(type_name = "GstFMP4MuxHeaderUpdateMode")] +#[enum_type(name = "GstFMP4MuxHeaderUpdateMode")] pub(crate) enum HeaderUpdateMode { None, Rewrite, diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index 91476c46..bfe5ac69 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -21,7 +21,6 @@ use futures::future::BoxFuture; use futures::lock::Mutex as FutMutex; use futures::prelude::*; -use glib::GBoxed; use gst::glib; use gst::prelude::*; @@ -61,8 +60,8 @@ pub enum Item { Event(gst::Event), } -#[derive(Clone, Debug, GBoxed)] -#[gboxed(type_name = "TsTestItemSender")] +#[derive(Clone, Debug, glib::Boxed)] +#[boxed_type(name = "TsTestItemSender")] struct ItemSender { sender: mpsc::Sender<Item>, } |