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 'generic/file/src/filesrc/imp.rs')
-rw-r--r--generic/file/src/filesrc/imp.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs
index 72a709b6d..886db2e33 100644
--- a/generic/file/src/filesrc/imp.rs
+++ b/generic/file/src/filesrc/imp.rs
@@ -132,13 +132,11 @@ impl ObjectSubclass for FileSrc {
impl ObjectImpl for FileSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpecString::new(
- "location",
- "File Location",
- "Location of the file to read from",
- None,
- glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
- )]
+ vec![glib::ParamSpecString::builder("location")
+ .nick("File Location")
+ .blurb("Location of the file to read from")
+ .mutable_ready()
+ .build()]
});
PROPERTIES.as_ref()