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 /generic/threadshare/src/appsrc/imp.rs | |
parent | df6a229f58cd83591ed1702bd95199436644d22e (diff) |
Update for ObjectImpl::get_property() being infallible now
Diffstat (limited to 'generic/threadshare/src/appsrc/imp.rs')
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index 85247392b..9ab686dae 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -667,16 +667,16 @@ impl ObjectImpl for AppSrc { } } - 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]; let settings = self.settings.lock().unwrap(); match *prop { - subclass::Property("context", ..) => Ok(settings.context.to_value()), - subclass::Property("context-wait", ..) => Ok(settings.context_wait.to_value()), - subclass::Property("caps", ..) => Ok(settings.caps.to_value()), - subclass::Property("max-buffers", ..) => Ok(settings.max_buffers.to_value()), - subclass::Property("do-timestamp", ..) => Ok(settings.do_timestamp.to_value()), + subclass::Property("context", ..) => settings.context.to_value(), + subclass::Property("context-wait", ..) => settings.context_wait.to_value(), + subclass::Property("caps", ..) => settings.caps.to_value(), + subclass::Property("max-buffers", ..) => settings.max_buffers.to_value(), + subclass::Property("do-timestamp", ..) => settings.do_timestamp.to_value(), _ => unimplemented!(), } } |