diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-04-25 15:41:22 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-04-25 15:48:55 +0300 |
commit | 15cf738616fac8390ff1bac144f6fac49148b47d (patch) | |
tree | d0b5b35c187d053cd49d0c0aa5bba8a149de4b5e /audio/audiofx/src | |
parent | 40765f7c53237e798565f9568caed7f4a4d6373c (diff) |
Update for Value trait refactoring
Diffstat (limited to 'audio/audiofx/src')
-rw-r--r-- | audio/audiofx/src/audioecho/imp.rs | 8 | ||||
-rw-r--r-- | audio/audiofx/src/audioloudnorm/imp.rs | 8 | ||||
-rw-r--r-- | audio/audiofx/src/ebur128level/imp.rs | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs index f5e32f8f..08b17fed 100644 --- a/audio/audiofx/src/audioecho/imp.rs +++ b/audio/audiofx/src/audioecho/imp.rs @@ -147,20 +147,20 @@ impl ObjectImpl for AudioEcho { "max-delay" => { let mut settings = self.settings.lock().unwrap(); if self.state.lock().unwrap().is_none() { - settings.max_delay = value.get_some().expect("type checked upstream"); + settings.max_delay = value.get().expect("type checked upstream"); } } "delay" => { let mut settings = self.settings.lock().unwrap(); - settings.delay = value.get_some().expect("type checked upstream"); + settings.delay = value.get().expect("type checked upstream"); } "intensity" => { let mut settings = self.settings.lock().unwrap(); - settings.intensity = value.get_some().expect("type checked upstream"); + settings.intensity = value.get().expect("type checked upstream"); } "feedback" => { let mut settings = self.settings.lock().unwrap(); - settings.feedback = value.get_some().expect("type checked upstream"); + settings.feedback = value.get().expect("type checked upstream"); } _ => unimplemented!(), } diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs index b79af3e6..b2eb149a 100644 --- a/audio/audiofx/src/audioloudnorm/imp.rs +++ b/audio/audiofx/src/audioloudnorm/imp.rs @@ -1813,19 +1813,19 @@ impl ObjectImpl for AudioLoudNorm { match pspec.name() { "loudness-target" => { let mut settings = self.settings.lock().unwrap(); - settings.loudness_target = value.get_some().expect("type checked upstream"); + settings.loudness_target = value.get().expect("type checked upstream"); } "loudness-range-target" => { let mut settings = self.settings.lock().unwrap(); - settings.loudness_range_target = value.get_some().expect("type checked upstream"); + settings.loudness_range_target = value.get().expect("type checked upstream"); } "max-true-peak" => { let mut settings = self.settings.lock().unwrap(); - settings.max_true_peak = value.get_some().expect("type checked upstream"); + settings.max_true_peak = value.get().expect("type checked upstream"); } "offset" => { let mut settings = self.settings.lock().unwrap(); - settings.offset = value.get_some().expect("type checked upstream"); + settings.offset = value.get().expect("type checked upstream"); } _ => unimplemented!(), } diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs index 06b7459e..233ac869 100644 --- a/audio/audiofx/src/ebur128level/imp.rs +++ b/audio/audiofx/src/ebur128level/imp.rs @@ -129,7 +129,7 @@ impl ObjectImpl for EbuR128Level { glib::subclass::Signal::builder("reset", &[], glib::Type::UNIT.into()) .action() .class_handler(|_token, args| { - let this = args[0].get::<super::EbuR128Level>().unwrap().unwrap(); + let this = args[0].get::<super::EbuR128Level>().unwrap(); let imp = EbuR128Level::from_instance(&this); gst_info!(CAT, obj: &this, "Resetting measurements",); @@ -187,7 +187,7 @@ impl ObjectImpl for EbuR128Level { let mut settings = self.settings.lock().unwrap(); match pspec.name() { "mode" => { - let mode = value.get_some().expect("type checked upstream"); + let mode = value.get().expect("type checked upstream"); gst_info!( CAT, obj: obj, @@ -198,7 +198,7 @@ impl ObjectImpl for EbuR128Level { settings.mode = mode; } "post-messages" => { - let post_messages = value.get_some().expect("type checked upstream"); + let post_messages = value.get().expect("type checked upstream"); gst_info!( CAT, obj: obj, @@ -209,7 +209,7 @@ impl ObjectImpl for EbuR128Level { settings.post_messages = post_messages; } "interval" => { - let interval = value.get_some().expect("type checked upstream"); + let interval = value.get().expect("type checked upstream"); gst_info!( CAT, obj: obj, |