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:
authorVivia Nikolaidou <vivia@ahiru.eu>2022-08-18 15:04:15 +0300
committerVivia Nikolaidou <vivia@ahiru.eu>2022-08-22 17:58:43 +0300
commit560611134588f63270a569e92160ecac5ceabc37 (patch)
treeac5f4447c55c1e5dd4d8f15f92c335c36aa5bab8 /video/closedcaption/src/cea608tojson/imp.rs
parent84f6484140098826b3f074d806e0eb052198df43 (diff)
plugins: Simplify code using ParamSpecBuilder
Diffstat (limited to 'video/closedcaption/src/cea608tojson/imp.rs')
-rw-r--r--video/closedcaption/src/cea608tojson/imp.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/video/closedcaption/src/cea608tojson/imp.rs b/video/closedcaption/src/cea608tojson/imp.rs
index c3a4107d1..bb65a93de 100644
--- a/video/closedcaption/src/cea608tojson/imp.rs
+++ b/video/closedcaption/src/cea608tojson/imp.rs
@@ -1014,14 +1014,15 @@ impl ObjectImpl for Cea608ToJson {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpecBoolean::new(
- "unbuffered",
- "Unbuffered",
- "Whether captions should be output at display time, \
+ vec![glib::ParamSpecBoolean::builder("unbuffered")
+ .nick("Unbuffered")
+ .blurb(
+ "Whether captions should be output at display time, \
instead of waiting to determine durations. Useful with live input",
- DEFAULT_UNBUFFERED,
- glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
- )]
+ )
+ .default_value(DEFAULT_UNBUFFERED)
+ .mutable_ready()
+ .build()]
});
PROPERTIES.as_ref()