diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-11-19 18:55:57 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-11-19 19:25:53 +0300 |
commit | d56ae71e0e4f5465fa32772414ca616ec7bcf0a6 (patch) | |
tree | 51811e16173d6a14a33813f8d77caabc1b207a91 /video/closedcaption/src/ccdetect/imp.rs | |
parent | df6a229f58cd83591ed1702bd95199436644d22e (diff) |
Update for ObjectImpl::get_property() being infallible now
Diffstat (limited to 'video/closedcaption/src/ccdetect/imp.rs')
-rw-r--r-- | video/closedcaption/src/ccdetect/imp.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/closedcaption/src/ccdetect/imp.rs b/video/closedcaption/src/ccdetect/imp.rs index 488c1b16e..3f38998cf 100644 --- a/video/closedcaption/src/ccdetect/imp.rs +++ b/video/closedcaption/src/ccdetect/imp.rs @@ -454,21 +454,21 @@ impl ObjectImpl for CCDetect { } } - fn get_property(&self, _obj: &Self::Type, id: usize) -> Result<glib::Value, ()> { + fn get_property(&self, _obj: &Self::Type, id: usize) -> glib::Value { let prop = &PROPERTIES[id]; match *prop { subclass::Property("window", ..) => { let settings = self.settings.lock().unwrap(); - Ok(settings.window.to_value()) + settings.window.to_value() } subclass::Property("cc608", ..) => { let settings = self.settings.lock().unwrap(); - Ok(settings.cc608.to_value()) + settings.cc608.to_value() } subclass::Property("cc708", ..) => { let settings = self.settings.lock().unwrap(); - Ok(settings.cc708.to_value()) + settings.cc708.to_value() } _ => unimplemented!(), } |