mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +00:00
doc: Mark request::user-agent as doc show default
This commit is contained in:
parent
67e651f57c
commit
16d804e761
2 changed files with 16 additions and 8 deletions
|
@ -2965,7 +2965,7 @@
|
|||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "GStreamer reqwesthttpsrc 0.9.0-1e55d9e1",
|
||||
"default": "GStreamer reqwesthttpsrc",
|
||||
"mutable": "ready",
|
||||
"readable": true,
|
||||
"type": "gchararray",
|
||||
|
|
|
@ -670,6 +670,20 @@ impl ReqwestHttpSrc {
|
|||
impl ObjectImpl for ReqwestHttpSrc {
|
||||
fn properties() -> &'static [glib::ParamSpec] {
|
||||
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
|
||||
#[allow(unused_mut)]
|
||||
let mut user_agent_pspec = glib::ParamSpecString::builder("user-agent")
|
||||
.nick("User-Agent")
|
||||
.blurb("Value of the User-Agent HTTP request header field")
|
||||
.default_value("GStreamer reqwesthttpsrc".into())
|
||||
.readwrite()
|
||||
.readwrite()
|
||||
.mutable_ready();
|
||||
|
||||
#[cfg(feature = "doc")]
|
||||
{
|
||||
user_agent_pspec = user_agent_pspec.doc_show_default();
|
||||
}
|
||||
|
||||
vec![
|
||||
glib::ParamSpecString::builder("location")
|
||||
.nick("Location")
|
||||
|
@ -677,13 +691,7 @@ impl ObjectImpl for ReqwestHttpSrc {
|
|||
.readwrite()
|
||||
.mutable_ready()
|
||||
.build(),
|
||||
glib::ParamSpecString::builder("user-agent")
|
||||
.nick("User-Agent")
|
||||
.blurb("Value of the User-Agent HTTP request header field")
|
||||
.default_value(DEFAULT_USER_AGENT.into())
|
||||
.readwrite()
|
||||
.mutable_ready()
|
||||
.build(),
|
||||
user_agent_pspec.build(),
|
||||
glib::ParamSpecBoolean::builder("is-live")
|
||||
.nick("Is Live")
|
||||
.blurb("Act like a live source")
|
||||
|
|
Loading…
Reference in a new issue