Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Elmoussaoui <belmouss@redhat.com>2022-07-21 18:09:17 +0300
committerBilal Elmoussaoui <belmouss@redhat.com>2022-07-21 21:03:13 +0300
commit52973d975ef362ad528bf5271746ee9bc691cdd8 (patch)
tree993a32c391511b31ddd354300c0991bde0aec59f /audio/audiofx
parent7d666ce5175f15dbfce9ff34e2e8e6205b9aab4f (diff)
Update per glib::SignalBuilder changes
Diffstat (limited to 'audio/audiofx')
-rw-r--r--audio/audiofx/src/ebur128level/imp.rs26
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