diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-07-21 18:09:17 +0300 |
---|---|---|
committer | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-07-21 21:03:13 +0300 |
commit | 52973d975ef362ad528bf5271746ee9bc691cdd8 (patch) | |
tree | 993a32c391511b31ddd354300c0991bde0aec59f /audio/audiofx | |
parent | 7d666ce5175f15dbfce9ff34e2e8e6205b9aab4f (diff) |
Update per glib::SignalBuilder changes
Diffstat (limited to 'audio/audiofx')
-rw-r--r-- | audio/audiofx/src/ebur128level/imp.rs | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs index 971d13f89..a8b176cc3 100644 --- a/audio/audiofx/src/ebur128level/imp.rs +++ b/audio/audiofx/src/ebur128level/imp.rs @@ -124,20 +124,18 @@ impl ObjectSubclass for EbuR128Level { impl ObjectImpl for EbuR128Level { fn signals() -> &'static [glib::subclass::Signal] { static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| { - vec![ - glib::subclass::Signal::builder("reset", &[], glib::Type::UNIT.into()) - .action() - .class_handler(|_token, args| { - let this = args[0].get::<super::EbuR128Level>().unwrap(); - let imp = this.imp(); - - gst::info!(CAT, obj: &this, "Resetting measurements",); - imp.reset.store(true, atomic::Ordering::SeqCst); - - None - }) - .build(), - ] + vec![glib::subclass::Signal::builder("reset") + .action() + .class_handler(|_token, args| { + let this = args[0].get::<super::EbuR128Level>().unwrap(); + let imp = this.imp(); + + gst::info!(CAT, obj: &this, "Resetting measurements",); + imp.reset.store(true, atomic::Ordering::SeqCst); + + None + }) + .build()] }); &*SIGNALS |