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/tutorial-1.md')
-rw-r--r--tutorial/tutorial-1.md29
1 files changed, 13 insertions, 16 deletions
diff --git a/tutorial/tutorial-1.md b/tutorial/tutorial-1.md
index b60c62116..275489095 100644
--- a/tutorial/tutorial-1.md
+++ b/tutorial/tutorial-1.md
@@ -732,22 +732,19 @@ impl ObjectImpl for Rgb2Gray {
// Metadata for the properties
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::boolean(
- "invert",
- "Invert",
- "Invert grayscale output",
- DEFAULT_INVERT,
- glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
- ),
- glib::ParamSpec::uint(
- "shift",
- "Shift",
- "Shift grayscale output (wrapping around)",
- 0,
- 255,
- DEFAULT_SHIFT,
- glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
- ),
+ glib::ParamSpecBoolean::builder("invert")
+ .nick("Invert")
+ .blurb("Invert grayscale output")
+ .default_value(DEFAULT_INVERT)
+ .mutable_playing()
+ .build(),
+ glib::ParamSpecUInt::builder("shift")
+ .nick("Shift")
+ .blurb("Shift grayscale output (wrapping around)")
+ .maximum(255)
+ .default_value(DEFAULT_SHIFT)
+ .mutable_playing()
+ .build(),
]
});