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/progressbin/imp.rs')
-rw-r--r--tutorial/src/progressbin/imp.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs
index e8dbbc772..26b7f85b5 100644
--- a/tutorial/src/progressbin/imp.rs
+++ b/tutorial/src/progressbin/imp.rs
@@ -82,14 +82,14 @@ impl ObjectImpl for ProgressBin {
// Metadata for the element's properties
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpecEnum::new(
- "output",
- "Output",
- "Defines the output type of the progressbin",
- ProgressBinOutput::static_type(),
- DEFAULT_OUTPUT_TYPE as i32,
- glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
- )]
+ vec![
+ glib::ParamSpecEnum::builder("output", ProgressBinOutput::static_type())
+ .nick("Output")
+ .blurb("Defines the output type of the progressbin")
+ .default_value(DEFAULT_OUTPUT_TYPE as i32)
+ .mutable_playing()
+ .build(),
+ ]
});
PROPERTIES.as_ref()