mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-01 17:23:48 +00:00
ts: inter: better ParamSpec Builder usage
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2378>
This commit is contained in:
parent
1ce1a41ca7
commit
858aee39b5
2 changed files with 14 additions and 7 deletions
|
@ -306,7 +306,8 @@ impl ObjectImpl for InterSink {
|
|||
.nick("Inter Context")
|
||||
.blurb("Context name of the inter elements to share with")
|
||||
.default_value(Some(DEFAULT_INTER_CONTEXT))
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build()]
|
||||
});
|
||||
|
||||
|
|
|
@ -744,39 +744,45 @@ impl ObjectImpl for InterSrc {
|
|||
.nick("Context")
|
||||
.blurb("Context name to share threads with")
|
||||
.default_value(Some(DEFAULT_CONTEXT))
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build(),
|
||||
glib::ParamSpecUInt::builder("context-wait")
|
||||
.nick("Context Wait")
|
||||
.blurb("Throttle poll loop to run at most once every this many ms")
|
||||
.maximum(1000)
|
||||
.default_value(DEFAULT_CONTEXT_WAIT.as_millis() as u32)
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build(),
|
||||
glib::ParamSpecString::builder("inter-context")
|
||||
.nick("Inter Context")
|
||||
.blurb("Context name of the inter elements to share with")
|
||||
.default_value(Some(DEFAULT_INTER_CONTEXT))
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build(),
|
||||
glib::ParamSpecUInt::builder("max-size-buffers")
|
||||
.nick("Max Size Buffers")
|
||||
.blurb("Maximum number of buffers to queue (0=unlimited)")
|
||||
.default_value(DEFAULT_MAX_SIZE_BUFFERS)
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build(),
|
||||
glib::ParamSpecUInt::builder("max-size-bytes")
|
||||
.nick("Max Size Bytes")
|
||||
.blurb("Maximum number of bytes to queue (0=unlimited)")
|
||||
.default_value(DEFAULT_MAX_SIZE_BYTES)
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build(),
|
||||
glib::ParamSpecUInt64::builder("max-size-time")
|
||||
.nick("Max Size Time")
|
||||
.blurb("Maximum number of nanoseconds to queue (0=unlimited)")
|
||||
.maximum(u64::MAX - 1)
|
||||
.default_value(DEFAULT_MAX_SIZE_TIME.nseconds())
|
||||
.flags(glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY)
|
||||
.readwrite()
|
||||
.construct_only()
|
||||
.build(),
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue