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:
Diffstat (limited to 'tutorial/src/rgb2gray/imp.rs')
-rw-r--r--tutorial/src/rgb2gray/imp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/src/rgb2gray/imp.rs b/tutorial/src/rgb2gray/imp.rs
index 4dbacbdd4..17c875907 100644
--- a/tutorial/src/rgb2gray/imp.rs
+++ b/tutorial/src/rgb2gray/imp.rs
@@ -276,17 +276,17 @@ impl ObjectImpl for Rgb2Gray {
// Called whenever a value of a property is read. It can be called
// at any time from any thread.
- 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("invert", ..) => {
let settings = self.settings.lock().unwrap();
- Ok(settings.invert.to_value())
+ settings.invert.to_value()
}
subclass::Property("shift", ..) => {
let settings = self.settings.lock().unwrap();
- Ok(settings.shift.to_value())
+ settings.shift.to_value()
}
_ => unimplemented!(),
}