Update for glib constructor renames

See https://github.com/gtk-rs/gtk-rs-core/pull/384
This commit is contained in:
Sebastian Dröge 2021-11-20 12:25:14 +02:00
parent 288acaa7cc
commit 55aad51141
48 changed files with 218 additions and 218 deletions

View file

@ -96,14 +96,14 @@ impl ObjectImpl for AudioEcho {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_uint64("max-delay", glib::ParamSpecUInt64::new("max-delay",
"Maximum Delay", "Maximum Delay",
"Maximum delay of the echo in nanoseconds (can't be changed in PLAYING or PAUSED state)", "Maximum delay of the echo in nanoseconds (can't be changed in PLAYING or PAUSED state)",
0, u64::MAX - 1, 0, u64::MAX - 1,
DEFAULT_MAX_DELAY.nseconds(), DEFAULT_MAX_DELAY.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"delay", "delay",
"Delay", "Delay",
"Delay of the echo in nanoseconds", "Delay of the echo in nanoseconds",
@ -112,7 +112,7 @@ impl ObjectImpl for AudioEcho {
DEFAULT_DELAY.nseconds(), DEFAULT_DELAY.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"intensity", "intensity",
"Intensity", "Intensity",
"Intensity of the echo", "Intensity of the echo",
@ -121,7 +121,7 @@ impl ObjectImpl for AudioEcho {
DEFAULT_INTENSITY, DEFAULT_INTENSITY,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"feedback", "feedback",
"Feedback", "Feedback",
"Amount of feedback", "Amount of feedback",

View file

@ -1769,7 +1769,7 @@ impl ObjectImpl for AudioLoudNorm {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"loudness-target", "loudness-target",
"Loudness Target", "Loudness Target",
"Loudness target in LUFS", "Loudness target in LUFS",
@ -1778,7 +1778,7 @@ impl ObjectImpl for AudioLoudNorm {
DEFAULT_LOUDNESS_TARGET, DEFAULT_LOUDNESS_TARGET,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"loudness-range-target", "loudness-range-target",
"Loudness Range Target", "Loudness Range Target",
"Loudness range target in LU", "Loudness range target in LU",
@ -1787,7 +1787,7 @@ impl ObjectImpl for AudioLoudNorm {
DEFAULT_LOUDNESS_RANGE_TARGET, DEFAULT_LOUDNESS_RANGE_TARGET,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"max-true-peak", "max-true-peak",
"Maximum True Peak", "Maximum True Peak",
"Maximum True Peak in dbTP", "Maximum True Peak in dbTP",
@ -1796,7 +1796,7 @@ impl ObjectImpl for AudioLoudNorm {
DEFAULT_MAX_TRUE_PEAK, DEFAULT_MAX_TRUE_PEAK,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"offset", "offset",
"Offset Gain", "Offset Gain",
"Offset Gain in LU", "Offset Gain in LU",

View file

@ -147,7 +147,7 @@ impl ObjectImpl for EbuR128Level {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_flags( glib::ParamSpecFlags::new(
"mode", "mode",
"Mode", "Mode",
"Selection of metrics to calculate", "Selection of metrics to calculate",
@ -155,14 +155,14 @@ impl ObjectImpl for EbuR128Level {
DEFAULT_MODE.bits() as u32, DEFAULT_MODE.bits() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"post-messages", "post-messages",
"Post Messages", "Post Messages",
"Whether to post messages on the bus for each interval", "Whether to post messages on the bus for each interval",
DEFAULT_POST_MESSAGES, DEFAULT_POST_MESSAGES,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"interval", "interval",
"Interval", "Interval",
"Interval in nanoseconds for posting messages", "Interval in nanoseconds for posting messages",

View file

@ -347,14 +347,14 @@ impl ObjectImpl for CsoundFilter {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"loop", "loop",
"Loop", "Loop",
"loop over the score (can be changed in PLAYING or PAUSED state)", "loop over the score (can be changed in PLAYING or PAUSED state)",
DEFAULT_LOOP, DEFAULT_LOOP,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"location", "location",
"Location", "Location",
"Location of the csd file to be used by csound. "Location of the csd file to be used by csound.
@ -362,7 +362,7 @@ impl ObjectImpl for CsoundFilter {
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"csd-text", "csd-text",
"CSD-text", "CSD-text",
"The content of a csd file passed as a String. "The content of a csd file passed as a String.
@ -370,7 +370,7 @@ impl ObjectImpl for CsoundFilter {
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"score-offset", "score-offset",
"Score Offset", "Score Offset",
"Score offset in seconds to start the performance", "Score offset in seconds to start the performance",

View file

@ -117,7 +117,7 @@ impl ObjectSubclass for FileSink {
impl ObjectImpl for FileSink { impl ObjectImpl for FileSink {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_string( vec![glib::ParamSpecString::new(
"location", "location",
"File Location", "File Location",
"Location of the file to write", "Location of the file to write",

View file

@ -131,7 +131,7 @@ impl ObjectSubclass for FileSrc {
impl ObjectImpl for FileSrc { impl ObjectImpl for FileSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_string( vec![glib::ParamSpecString::new(
"location", "location",
"File Location", "File Location",
"Location of the file to read from", "Location of the file to read from",

View file

@ -375,8 +375,8 @@ pub(super) fn create_fmp4_header(cfg: super::HeaderConfiguration) -> Result<gst:
fn write_moov(v: &mut Vec<u8>, cfg: &super::HeaderConfiguration) -> Result<(), Error> { fn write_moov(v: &mut Vec<u8>, cfg: &super::HeaderConfiguration) -> Result<(), Error> {
use gst::glib; use gst::glib;
let base = glib::DateTime::new_utc(1904, 1, 1, 0, 0, 0.0)?; let base = glib::DateTime::from_utc(1904, 1, 1, 0, 0, 0.0)?;
let now = glib::DateTime::new_now_utc()?; let now = glib::DateTime::now_utc()?;
let creation_time = let creation_time =
u64::try_from(now.difference(&base).as_seconds()).expect("time before 1904"); u64::try_from(now.difference(&base).as_seconds()).expect("time before 1904");

View file

@ -1110,7 +1110,7 @@ impl ObjectImpl for FMP4Mux {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
// TODO: Add chunk-duration property separate from fragment-size // TODO: Add chunk-duration property separate from fragment-size
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"fragment-duration", "fragment-duration",
"Fragment Duration", "Fragment Duration",
"Duration for each FMP4 fragment", "Duration for each FMP4 fragment",
@ -1119,7 +1119,7 @@ impl ObjectImpl for FMP4Mux {
DEFAULT_FRAGMENT_DURATION.nseconds(), DEFAULT_FRAGMENT_DURATION.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"header-update-mode", "header-update-mode",
"Header update mode", "Header update mode",
"Mode for updating the header at the end of the stream", "Mode for updating the header at the end of the stream",
@ -1127,14 +1127,14 @@ impl ObjectImpl for FMP4Mux {
DEFAULT_HEADER_UPDATE_MODE as i32, DEFAULT_HEADER_UPDATE_MODE as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"write-mfra", "write-mfra",
"Write mfra box", "Write mfra box",
"Write fragment random access box at the end of the stream", "Write fragment random access box at the end of the stream",
DEFAULT_WRITE_MFRA, DEFAULT_WRITE_MFRA,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"write-mehd", "write-mehd",
"Write mehd box", "Write mehd box",
"Write movie extends header box with the duration at the end of the stream (needs a header-update-mode enabled)", "Write movie extends header box with the duration at the end of the stream (needs a header-update-mode enabled)",

View file

@ -598,14 +598,14 @@ impl ObjectImpl for Decrypter {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"receiver-key", "receiver-key",
"Receiver Key", "Receiver Key",
"The private key of the Reeiver", "The private key of the Reeiver",
glib::Bytes::static_type(), glib::Bytes::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"sender-key", "sender-key",
"Sender Key", "Sender Key",
"The public key of the Sender", "The public key of the Sender",

View file

@ -390,21 +390,21 @@ impl ObjectImpl for Encrypter {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"receiver-key", "receiver-key",
"Receiver Key", "Receiver Key",
"The public key of the Receiver", "The public key of the Receiver",
glib::Bytes::static_type(), glib::Bytes::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"sender-key", "sender-key",
"Sender Key", "Sender Key",
"The private key of the Sender", "The private key of the Sender",
glib::Bytes::static_type(), glib::Bytes::static_type(),
glib::ParamFlags::WRITABLE, glib::ParamFlags::WRITABLE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"block-size", "block-size",
"Block Size", "Block Size",
"The block-size of the chunks", "The block-size of the chunks",

View file

@ -527,14 +527,14 @@ impl ObjectImpl for AppSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -543,7 +543,7 @@ impl ObjectImpl for AppSrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-buffers", "max-buffers",
"Max Buffers", "Max Buffers",
"Maximum number of buffers to queue up", "Maximum number of buffers to queue up",
@ -552,14 +552,14 @@ impl ObjectImpl for AppSrc {
DEFAULT_MAX_BUFFERS, DEFAULT_MAX_BUFFERS,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"caps", "caps",
"Caps", "Caps",
"Caps to use", "Caps to use",
gst::Caps::static_type(), gst::Caps::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"do-timestamp", "do-timestamp",
"Do Timestamp", "Do Timestamp",
"Timestamp buffers with the current running time on arrival", "Timestamp buffers with the current running time on arrival",

View file

@ -413,14 +413,14 @@ impl ObjectImpl for InputSelector {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -429,7 +429,7 @@ impl ObjectImpl for InputSelector {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"active-pad", "active-pad",
"Active Pad", "Active Pad",
"Currently active pad", "Currently active pad",

View file

@ -1343,14 +1343,14 @@ impl ObjectImpl for JitterBuffer {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -1359,7 +1359,7 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_CONTEXT_WAIT.mseconds() as u32, DEFAULT_CONTEXT_WAIT.mseconds() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"latency", "latency",
"Buffer latency in ms", "Buffer latency in ms",
"Amount of ms to buffer", "Amount of ms to buffer",
@ -1368,14 +1368,14 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_LATENCY.mseconds() as u32, DEFAULT_LATENCY.mseconds() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"do-lost", "do-lost",
"Do Lost", "Do Lost",
"Send an event downstream when a packet is lost", "Send an event downstream when a packet is lost",
DEFAULT_DO_LOST, DEFAULT_DO_LOST,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-dropout-time", "max-dropout-time",
"Max dropout time", "Max dropout time",
"The maximum time (milliseconds) of missing packets tolerated.", "The maximum time (milliseconds) of missing packets tolerated.",
@ -1384,7 +1384,7 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_MAX_DROPOUT_TIME, DEFAULT_MAX_DROPOUT_TIME,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-misorder-time", "max-misorder-time",
"Max misorder time", "Max misorder time",
"The maximum time (milliseconds) of misordered packets tolerated.", "The maximum time (milliseconds) of misordered packets tolerated.",
@ -1393,7 +1393,7 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_MAX_MISORDER_TIME, DEFAULT_MAX_MISORDER_TIME,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"stats", "stats",
"Statistics", "Statistics",
"Various statistics", "Various statistics",

View file

@ -589,7 +589,7 @@ impl ObjectSubclass for ProxySink {
impl ObjectImpl for ProxySink { impl ObjectImpl for ProxySink {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_string( vec![glib::ParamSpecString::new(
"proxy-context", "proxy-context",
"Proxy Context", "Proxy Context",
"Context name of the proxy to share with", "Context name of the proxy to share with",
@ -1131,14 +1131,14 @@ impl ObjectImpl for ProxySrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -1147,14 +1147,14 @@ impl ObjectImpl for ProxySrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"proxy-context", "proxy-context",
"Proxy Context", "Proxy Context",
"Context name of the proxy to share with", "Context name of the proxy to share with",
Some(DEFAULT_PROXY_CONTEXT), Some(DEFAULT_PROXY_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-size-buffers", "max-size-buffers",
"Max Size Buffers", "Max Size Buffers",
"Maximum number of buffers to queue (0=unlimited)", "Maximum number of buffers to queue (0=unlimited)",
@ -1163,7 +1163,7 @@ impl ObjectImpl for ProxySrc {
DEFAULT_MAX_SIZE_BUFFERS, DEFAULT_MAX_SIZE_BUFFERS,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-size-bytes", "max-size-bytes",
"Max Size Bytes", "Max Size Bytes",
"Maximum number of bytes to queue (0=unlimited)", "Maximum number of bytes to queue (0=unlimited)",
@ -1172,7 +1172,7 @@ impl ObjectImpl for ProxySrc {
DEFAULT_MAX_SIZE_BYTES, DEFAULT_MAX_SIZE_BYTES,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"max-size-time", "max-size-time",
"Max Size Time", "Max Size Time",
"Maximum number of nanoseconds to queue (0=unlimited)", "Maximum number of nanoseconds to queue (0=unlimited)",

View file

@ -717,14 +717,14 @@ impl ObjectImpl for Queue {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -733,7 +733,7 @@ impl ObjectImpl for Queue {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-size-buffers", "max-size-buffers",
"Max Size Buffers", "Max Size Buffers",
"Maximum number of buffers to queue (0=unlimited)", "Maximum number of buffers to queue (0=unlimited)",
@ -742,7 +742,7 @@ impl ObjectImpl for Queue {
DEFAULT_MAX_SIZE_BUFFERS, DEFAULT_MAX_SIZE_BUFFERS,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-size-bytes", "max-size-bytes",
"Max Size Bytes", "Max Size Bytes",
"Maximum number of bytes to queue (0=unlimited)", "Maximum number of bytes to queue (0=unlimited)",
@ -751,7 +751,7 @@ impl ObjectImpl for Queue {
DEFAULT_MAX_SIZE_BYTES, DEFAULT_MAX_SIZE_BYTES,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"max-size-time", "max-size-time",
"Max Size Time", "Max Size Time",
"Maximum number of nanoseconds to queue (0=unlimited)", "Maximum number of nanoseconds to queue (0=unlimited)",

View file

@ -568,14 +568,14 @@ impl ObjectImpl for TcpClientSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -584,14 +584,14 @@ impl ObjectImpl for TcpClientSrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"host", "host",
"Host", "Host",
"The host IP address to receive packets from", "The host IP address to receive packets from",
DEFAULT_HOST, DEFAULT_HOST,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"port", "port",
"Port", "Port",
"Port to receive packets from", "Port to receive packets from",
@ -600,14 +600,14 @@ impl ObjectImpl for TcpClientSrc {
DEFAULT_PORT, DEFAULT_PORT,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"caps", "caps",
"Caps", "Caps",
"Caps to use", "Caps to use",
gst::Caps::static_type(), gst::Caps::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"blocksize", "blocksize",
"Blocksize", "Blocksize",
"Size in bytes to read per buffer (-1 = default)", "Size in bytes to read per buffer (-1 = default)",

View file

@ -966,14 +966,14 @@ impl ObjectImpl for UdpSink {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -982,21 +982,21 @@ impl ObjectImpl for UdpSink {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"sync", "sync",
"Sync", "Sync",
"Sync on the clock", "Sync on the clock",
DEFAULT_SYNC, DEFAULT_SYNC,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"bind-address", "bind-address",
"Bind Address", "Bind Address",
"Address to bind the socket to", "Address to bind the socket to",
Some(DEFAULT_BIND_ADDRESS), Some(DEFAULT_BIND_ADDRESS),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"bind-port", "bind-port",
"Bind Port", "Bind Port",
"Port to bind the socket to", "Port to bind the socket to",
@ -1005,14 +1005,14 @@ impl ObjectImpl for UdpSink {
DEFAULT_BIND_PORT, DEFAULT_BIND_PORT,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"bind-address-v6", "bind-address-v6",
"Bind Address V6", "Bind Address V6",
"Address to bind the V6 socket to", "Address to bind the V6 socket to",
Some(DEFAULT_BIND_ADDRESS_V6), Some(DEFAULT_BIND_ADDRESS_V6),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"bind-port-v6", "bind-port-v6",
"Bind Port", "Bind Port",
"Port to bind the V6 socket to", "Port to bind the V6 socket to",
@ -1021,49 +1021,49 @@ impl ObjectImpl for UdpSink {
DEFAULT_BIND_PORT_V6, DEFAULT_BIND_PORT_V6,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"socket", "socket",
"Socket", "Socket",
"Socket to use for UDP transmission. (None == allocate)", "Socket to use for UDP transmission. (None == allocate)",
gio::Socket::static_type(), gio::Socket::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"used-socket", "used-socket",
"Used Socket", "Used Socket",
"Socket currently in use for UDP transmission. (None = no socket)", "Socket currently in use for UDP transmission. (None = no socket)",
gio::Socket::static_type(), gio::Socket::static_type(),
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"socket-v6", "socket-v6",
"Socket V6", "Socket V6",
"IPV6 Socket to use for UDP transmission. (None == allocate)", "IPV6 Socket to use for UDP transmission. (None == allocate)",
gio::Socket::static_type(), gio::Socket::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"used-socket-v6", "used-socket-v6",
"Used Socket V6", "Used Socket V6",
"V6 Socket currently in use for UDP transmission. (None = no socket)", "V6 Socket currently in use for UDP transmission. (None = no socket)",
gio::Socket::static_type(), gio::Socket::static_type(),
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"auto-multicast", "auto-multicast",
"Auto multicast", "Auto multicast",
"Automatically join/leave the multicast groups, FALSE means user has to do it himself", "Automatically join/leave the multicast groups, FALSE means user has to do it himself",
DEFAULT_AUTO_MULTICAST, DEFAULT_AUTO_MULTICAST,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"loop", "loop",
"Loop", "Loop",
"Set the multicast loop parameter.", "Set the multicast loop parameter.",
DEFAULT_LOOP, DEFAULT_LOOP,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"ttl", "ttl",
"Time To Live", "Time To Live",
"Used for setting the unicast TTL parameter", "Used for setting the unicast TTL parameter",
@ -1072,7 +1072,7 @@ impl ObjectImpl for UdpSink {
DEFAULT_TTL, DEFAULT_TTL,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"ttl-mc", "ttl-mc",
"Time To Live Multicast", "Time To Live Multicast",
"Used for setting the multicast TTL parameter", "Used for setting the multicast TTL parameter",
@ -1081,7 +1081,7 @@ impl ObjectImpl for UdpSink {
DEFAULT_TTL_MC, DEFAULT_TTL_MC,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"qos-dscp", "qos-dscp",
"QoS DSCP", "QoS DSCP",
"Quality of Service, differentiated services code point (-1 default)", "Quality of Service, differentiated services code point (-1 default)",
@ -1090,7 +1090,7 @@ impl ObjectImpl for UdpSink {
DEFAULT_QOS_DSCP, DEFAULT_QOS_DSCP,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"clients", "clients",
"Clients", "Clients",
"A comma separated list of host:port pairs with destinations", "A comma separated list of host:port pairs with destinations",

View file

@ -709,14 +709,14 @@ impl ObjectImpl for UdpSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
let mut properties = vec![ let mut properties = vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
Some(DEFAULT_CONTEXT), Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"context-wait", "context-wait",
"Context Wait", "Context Wait",
"Throttle poll loop to run at most once every this many ms", "Throttle poll loop to run at most once every this many ms",
@ -725,14 +725,14 @@ impl ObjectImpl for UdpSrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32, DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"address", "address",
"Address", "Address",
"Address/multicast group to listen on", "Address/multicast group to listen on",
DEFAULT_ADDRESS, DEFAULT_ADDRESS,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"port", "port",
"Port", "Port",
"Port to listen on", "Port to listen on",
@ -741,21 +741,21 @@ impl ObjectImpl for UdpSrc {
DEFAULT_PORT, DEFAULT_PORT,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"reuse", "reuse",
"Reuse", "Reuse",
"Allow reuse of the port", "Allow reuse of the port",
DEFAULT_REUSE, DEFAULT_REUSE,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"caps", "caps",
"Caps", "Caps",
"Caps to use", "Caps to use",
gst::Caps::static_type(), gst::Caps::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"mtu", "mtu",
"MTU", "MTU",
"Maximum expected packet size. This directly defines the allocation size of the receive buffer pool", "Maximum expected packet size. This directly defines the allocation size of the receive buffer pool",
@ -764,7 +764,7 @@ impl ObjectImpl for UdpSrc {
DEFAULT_MTU, DEFAULT_MTU,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"retrieve-sender-address", "retrieve-sender-address",
"Retrieve sender address", "Retrieve sender address",
"Whether to retrieve the sender address and add it to buffers as meta. Disabling this might result in minor performance improvements in certain scenarios", "Whether to retrieve the sender address and add it to buffers as meta. Disabling this might result in minor performance improvements in certain scenarios",
@ -775,14 +775,14 @@ impl ObjectImpl for UdpSrc {
#[cfg(not(windows))] #[cfg(not(windows))]
{ {
properties.push(glib::ParamSpec::new_object( properties.push(glib::ParamSpecObject::new(
"socket", "socket",
"Socket", "Socket",
"Socket to use for UDP reception. (None == allocate)", "Socket to use for UDP reception. (None == allocate)",
gio::Socket::static_type(), gio::Socket::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
)); ));
properties.push(glib::ParamSpec::new_object( properties.push(glib::ParamSpecObject::new(
"used-socket", "used-socket",
"Used Socket", "Used Socket",
"Socket currently in use for UDP reception. (None = no socket)", "Socket currently in use for UDP reception. (None = no socket)",

View file

@ -325,7 +325,7 @@ mod imp_src {
impl ObjectImpl for ElementSrcTest { impl ObjectImpl for ElementSrcTest {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_string( vec![glib::ParamSpecString::new(
"context", "context",
"Context", "Context",
"Context name to share threads with", "Context name to share threads with",
@ -657,7 +657,7 @@ mod imp_sink {
impl ObjectImpl for ElementSinkTest { impl ObjectImpl for ElementSinkTest {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_boxed( vec![glib::ParamSpecBoxed::new(
"sender", "sender",
"Sender", "Sender",
"Channel sender to forward the incoming items to", "Channel sender to forward the incoming items to",

View file

@ -384,28 +384,28 @@ impl ObjectImpl for HlsSink3 {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"location", "location",
"File Location", "File Location",
"Location of the file to write", "Location of the file to write",
Some(DEFAULT_LOCATION), Some(DEFAULT_LOCATION),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"playlist-location", "playlist-location",
"Playlist Location", "Playlist Location",
"Location of the playlist to write.", "Location of the playlist to write.",
Some(DEFAULT_PLAYLIST_LOCATION), Some(DEFAULT_PLAYLIST_LOCATION),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"playlist-root", "playlist-root",
"Playlist Root", "Playlist Root",
"Location of the playlist to write.", "Location of the playlist to write.",
None, None,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"max-files", "max-files",
"Max files", "Max files",
"Maximum number of files to keep on disk. Once the maximum is reached, old files start to be deleted to make room for new ones.", "Maximum number of files to keep on disk. Once the maximum is reached, old files start to be deleted to make room for new ones.",
@ -414,7 +414,7 @@ impl ObjectImpl for HlsSink3 {
DEFAULT_MAX_NUM_SEGMENT_FILES, DEFAULT_MAX_NUM_SEGMENT_FILES,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"target-duration", "target-duration",
"Target duration", "Target duration",
"The target duration in seconds of a segment/file. (0 - disabled, useful for management of segment duration by the streaming server)", "The target duration in seconds of a segment/file. (0 - disabled, useful for management of segment duration by the streaming server)",
@ -423,7 +423,7 @@ impl ObjectImpl for HlsSink3 {
DEFAULT_TARGET_DURATION, DEFAULT_TARGET_DURATION,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"playlist-length", "playlist-length",
"Playlist length", "Playlist length",
"Length of HLS playlist. To allow players to conform to section 6.3.3 of the HLS specification, this should be at least 3. If set to 0, the playlist will be infinite.", "Length of HLS playlist. To allow players to conform to section 6.3.3 of the HLS specification, this should be at least 3. If set to 0, the playlist will be infinite.",
@ -432,14 +432,14 @@ impl ObjectImpl for HlsSink3 {
DEFAULT_PLAYLIST_LENGTH, DEFAULT_PLAYLIST_LENGTH,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"playlist-type", "playlist-type",
"Playlist Type", "Playlist Type",
"The type of the playlist to use. When VOD type is set, the playlist will be live until the pipeline ends execution.", "The type of the playlist to use. When VOD type is set, the playlist will be live until the pipeline ends execution.",
None, None,
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"send-keyframe-requests", "send-keyframe-requests",
"Send Keyframe Requests", "Send Keyframe Requests",
"Send keyframe requests to ensure correct fragmentation. If this is disabled then the input must have keyframes in regular intervals.", "Send keyframe requests to ensure correct fragmentation. If this is disabled then the input must have keyframes in regular intervals.",

View file

@ -672,42 +672,42 @@ impl ObjectImpl for ReqwestHttpSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"location", "location",
"Location", "Location",
"URL to read from", "URL to read from",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"user-agent", "user-agent",
"User-Agent", "User-Agent",
"Value of the User-Agent HTTP request header field", "Value of the User-Agent HTTP request header field",
DEFAULT_USER_AGENT.into(), DEFAULT_USER_AGENT.into(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"is-live", "is-live",
"Is Live", "Is Live",
"Act like a live source", "Act like a live source",
DEFAULT_IS_LIVE, DEFAULT_IS_LIVE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"user-id", "user-id",
"User-id", "User-id",
"HTTP location URI user id for authentication", "HTTP location URI user id for authentication",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"user-pw", "user-pw",
"User-pw", "User-pw",
"HTTP location URI user password for authentication", "HTTP location URI user password for authentication",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"timeout", "timeout",
"Timeout", "Timeout",
"Value in seconds to timeout a blocking I/O (0 = No timeout).", "Value in seconds to timeout a blocking I/O (0 = No timeout).",
@ -716,56 +716,56 @@ impl ObjectImpl for ReqwestHttpSrc {
DEFAULT_TIMEOUT, DEFAULT_TIMEOUT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"compress", "compress",
"Compress", "Compress",
"Allow compressed content encodings", "Allow compressed content encodings",
DEFAULT_COMPRESS, DEFAULT_COMPRESS,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"extra-headers", "extra-headers",
"Extra Headers", "Extra Headers",
"Extra headers to append to the HTTP request", "Extra headers to append to the HTTP request",
gst::Structure::static_type(), gst::Structure::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"cookies", "cookies",
"Cookies", "Cookies",
"HTTP request cookies", "HTTP request cookies",
Vec::<String>::static_type(), Vec::<String>::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"iradio-mode", "iradio-mode",
"I-Radio Mode", "I-Radio Mode",
"Enable internet radio mode (ask server to send shoutcast/icecast metadata interleaved with the actual stream data", "Enable internet radio mode (ask server to send shoutcast/icecast metadata interleaved with the actual stream data",
DEFAULT_IRADIO_MODE, DEFAULT_IRADIO_MODE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"keep-alive", "keep-alive",
"Keep Alive", "Keep Alive",
"Use HTTP persistent connections", "Use HTTP persistent connections",
DEFAULT_KEEP_ALIVE, DEFAULT_KEEP_ALIVE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"proxy", "proxy",
"Proxy", "Proxy",
"HTTP proxy server URI", "HTTP proxy server URI",
Some(""), Some(""),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"proxy-id", "proxy-id",
"Proxy-id", "Proxy-id",
"HTTP proxy URI user id for authentication", "HTTP proxy URI user id for authentication",
Some(""), Some(""),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"proxy-pw", "proxy-pw",
"Proxy-pw", "Proxy-pw",
"HTTP proxy URI user password for authentication", "HTTP proxy URI user password for authentication",

View file

@ -1088,7 +1088,7 @@ impl ObjectImpl for Transcriber {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"language-code", "language-code",
"Language Code", "Language Code",
"The Language of the Stream, see \ "The Language of the Stream, see \
@ -1097,7 +1097,7 @@ impl ObjectImpl for Transcriber {
Some("en-US"), Some("en-US"),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"latency", "latency",
"Latency", "Latency",
"Amount of milliseconds to allow AWS transcribe", "Amount of milliseconds to allow AWS transcribe",
@ -1106,7 +1106,7 @@ impl ObjectImpl for Transcriber {
DEFAULT_LATENCY.mseconds() as u32, DEFAULT_LATENCY.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"lateness", "lateness",
"Lateness", "Lateness",
"Amount of milliseconds to introduce as lateness", "Amount of milliseconds to introduce as lateness",
@ -1115,7 +1115,7 @@ impl ObjectImpl for Transcriber {
DEFAULT_LATENESS.mseconds() as u32, DEFAULT_LATENESS.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"vocabulary-name", "vocabulary-name",
"Vocabulary Name", "Vocabulary Name",
"The name of a custom vocabulary, see \ "The name of a custom vocabulary, see \
@ -1124,14 +1124,14 @@ impl ObjectImpl for Transcriber {
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"session-id", "session-id",
"Session ID", "Session ID",
"The ID of the transcription session, must be length 36", "The ID of the transcription session, must be length 36",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"results-stability", "results-stability",
"Results stability", "Results stability",
"Defines how fast results should stabilize", "Defines how fast results should stabilize",
@ -1139,14 +1139,14 @@ impl ObjectImpl for Transcriber {
DEFAULT_STABILITY as i32, DEFAULT_STABILITY as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"access-key", "access-key",
"Access Key", "Access Key",
"AWS Access Key", "AWS Access Key",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"secret-access-key", "secret-access-key",
"Secret Access Key", "Secret Access Key",
"AWS Secret Access Key", "AWS Secret Access Key",

View file

@ -434,28 +434,28 @@ impl ObjectImpl for S3Sink {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"bucket", "bucket",
"S3 Bucket", "S3 Bucket",
"The bucket of the file to write", "The bucket of the file to write",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"key", "key",
"S3 Key", "S3 Key",
"The key of the file to write", "The key of the file to write",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"region", "region",
"AWS Region", "AWS Region",
"An AWS region (e.g. eu-west-2).", "An AWS region (e.g. eu-west-2).",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"part-size", "part-size",
"Part size", "Part size",
"A size (in bytes) of an individual part used for multipart upload.", "A size (in bytes) of an individual part used for multipart upload.",
@ -464,21 +464,21 @@ impl ObjectImpl for S3Sink {
DEFAULT_BUFFER_SIZE, DEFAULT_BUFFER_SIZE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"uri", "uri",
"URI", "URI",
"The S3 object URI", "The S3 object URI",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"access-key", "access-key",
"Access Key", "Access Key",
"AWS Access Key", "AWS Access Key",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"secret-access-key", "secret-access-key",
"Secret Access Key", "Secret Access Key",
"AWS Secret Access Key", "AWS Secret Access Key",

View file

@ -247,21 +247,21 @@ impl ObjectImpl for S3Src {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"uri", "uri",
"URI", "URI",
"The S3 object URI", "The S3 object URI",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"access-key", "access-key",
"Access Key", "Access Key",
"AWS Access Key", "AWS Access Key",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"secret-access-key", "secret-access-key",
"Secret Access Key", "Secret Access Key",
"AWS Secret Access Key", "AWS Secret Access Key",

View file

@ -156,17 +156,17 @@ impl ObjectSubclass for RegEx {
impl ObjectImpl for RegEx { impl ObjectImpl for RegEx {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_array( vec![gst::ParamSpecArray::new(
"commands", "commands",
"Commands", "Commands",
"A set of commands to apply on input text", "A set of commands to apply on input text",
&glib::ParamSpec::new_boxed( Some(&glib::ParamSpecBoxed::new(
"command", "command",
"Command", "Command",
"A command to apply on input text", "A command to apply on input text",
gst::Structure::static_type(), gst::Structure::static_type(),
glib::ParamFlags::READWRITE, glib::ParamFlags::READWRITE,
), )),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
)] )]
}); });

View file

@ -498,7 +498,7 @@ impl ObjectImpl for TextWrap {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"dictionary", "dictionary",
"Dictionary", "Dictionary",
"Path to a dictionary to load at runtime to perform hyphenation, see \ "Path to a dictionary to load at runtime to perform hyphenation, see \
@ -506,7 +506,7 @@ impl ObjectImpl for TextWrap {
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"columns", "columns",
"Columns", "Columns",
"Maximum number of columns for any given line", "Maximum number of columns for any given line",
@ -515,7 +515,7 @@ impl ObjectImpl for TextWrap {
DEFAULT_COLUMNS, DEFAULT_COLUMNS,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"lines", "lines",
"Lines", "Lines",
"Split input buffer into output buffers with max lines (0=do not split)", "Split input buffer into output buffers with max lines (0=do not split)",
@ -524,7 +524,7 @@ impl ObjectImpl for TextWrap {
DEFAULT_LINES, DEFAULT_LINES,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"accumulate-time", "accumulate-time",
"accumulate-time", "accumulate-time",
"Cut-off time for input text accumulation (0=do not accumulate)", "Cut-off time for input text accumulation (0=do not accumulate)",

View file

@ -81,7 +81,7 @@ impl ObjectImpl for ProgressBin {
// Metadata for the element's properties // Metadata for the element's properties
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_enum( vec![glib::ParamSpecEnum::new(
"output", "output",
"Output", "Output",
"Defines the output type of the progressbin", "Defines the output type of the progressbin",

View file

@ -97,14 +97,14 @@ impl ObjectImpl for Rgb2Gray {
// Metadata for the properties // Metadata for the properties
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"invert", "invert",
"Invert", "Invert",
"Invert grayscale output", "Invert grayscale output",
DEFAULT_INVERT, DEFAULT_INVERT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"shift", "shift",
"Shift", "Shift",
"Shift grayscale output (wrapping around)", "Shift grayscale output (wrapping around)",

View file

@ -167,7 +167,7 @@ impl ObjectImpl for SineSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"samples-per-buffer", "samples-per-buffer",
"Samples Per Buffer", "Samples Per Buffer",
"Number of samples per output buffer", "Number of samples per output buffer",
@ -176,7 +176,7 @@ impl ObjectImpl for SineSrc {
DEFAULT_SAMPLES_PER_BUFFER, DEFAULT_SAMPLES_PER_BUFFER,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"freq", "freq",
"Frequency", "Frequency",
"Frequency", "Frequency",
@ -185,7 +185,7 @@ impl ObjectImpl for SineSrc {
DEFAULT_FREQ, DEFAULT_FREQ,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_double( glib::ParamSpecDouble::new(
"volume", "volume",
"Volume", "Volume",
"Output volume", "Output volume",
@ -194,14 +194,14 @@ impl ObjectImpl for SineSrc {
DEFAULT_VOLUME, DEFAULT_VOLUME,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"mute", "mute",
"Mute", "Mute",
"Mute", "Mute",
DEFAULT_MUTE, DEFAULT_MUTE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"is-live", "is-live",
"Is Live", "Is Live",
"(Pseudo) live output", "(Pseudo) live output",

View file

@ -63,7 +63,7 @@ impl ObjectSubclass for CustomSource {
impl ObjectImpl for CustomSource { impl ObjectImpl for CustomSource {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_object( vec![glib::ParamSpecObject::new(
"source", "source",
"Source", "Source",
"Source", "Source",

View file

@ -199,36 +199,36 @@ impl ObjectImpl for FallbackSrc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"enable-audio", "enable-audio",
"Enable Audio", "Enable Audio",
"Enable the audio stream, this will output silence if there's no audio in the configured URI", "Enable the audio stream, this will output silence if there's no audio in the configured URI",
true, true,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"enable-video", "enable-video",
"Enable Video", "Enable Video",
"Enable the video stream, this will output black or the fallback video if there's no video in the configured URI", "Enable the video stream, this will output black or the fallback video if there's no video in the configured URI",
true, true,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string("uri", "URI", "URI to use", None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY), glib::ParamSpecString::new("uri", "URI", "URI to use", None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"source", "source",
"Source", "Source",
"Source to use instead of the URI", "Source to use instead of the URI",
gst::Element::static_type(), gst::Element::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"fallback-uri", "fallback-uri",
"Fallback URI", "Fallback URI",
"Fallback URI to use for video in case the main stream doesn't work", "Fallback URI to use for video in case the main stream doesn't work",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"timeout", "timeout",
"Timeout", "Timeout",
"Timeout for switching to the fallback URI", "Timeout for switching to the fallback URI",
@ -237,7 +237,7 @@ impl ObjectImpl for FallbackSrc {
5 * *gst::ClockTime::SECOND, 5 * *gst::ClockTime::SECOND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"restart-timeout", "restart-timeout",
"Timeout", "Timeout",
"Timeout for restarting an active source", "Timeout for restarting an active source",
@ -246,7 +246,7 @@ impl ObjectImpl for FallbackSrc {
5 * *gst::ClockTime::SECOND, 5 * *gst::ClockTime::SECOND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"retry-timeout", "retry-timeout",
"Retry Timeout", "Retry Timeout",
"Timeout for stopping after repeated failure", "Timeout for stopping after repeated failure",
@ -255,14 +255,14 @@ impl ObjectImpl for FallbackSrc {
60 * *gst::ClockTime::SECOND, 60 * *gst::ClockTime::SECOND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"restart-on-eos", "restart-on-eos",
"Restart on EOS", "Restart on EOS",
"Restart source on EOS", "Restart source on EOS",
false, false,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"status", "status",
"Status", "Status",
"Current source status", "Current source status",
@ -270,7 +270,7 @@ impl ObjectImpl for FallbackSrc {
Status::Stopped as i32, Status::Stopped as i32,
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"min-latency", "min-latency",
"Minimum Latency", "Minimum Latency",
"When the main source has a higher latency than the fallback source \ "When the main source has a higher latency than the fallback source \
@ -281,7 +281,7 @@ impl ObjectImpl for FallbackSrc {
0, 0,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_int64( glib::ParamSpecInt64::new(
"buffer-duration", "buffer-duration",
"Buffer Duration", "Buffer Duration",
"Buffer duration when buffering streams (-1 default value)", "Buffer duration when buffering streams (-1 default value)",
@ -290,21 +290,21 @@ impl ObjectImpl for FallbackSrc {
-1, -1,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"statistics", "statistics",
"Statistics", "Statistics",
"Various statistics", "Various statistics",
gst::Structure::static_type(), gst::Structure::static_type(),
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"manual-unblock", "manual-unblock",
"Manual unblock", "Manual unblock",
"When enabled, the application must call the unblock signal, except for live streams", "When enabled, the application must call the unblock signal, except for live streams",
false, false,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"immediate-fallback", "immediate-fallback",
"Immediate fallback", "Immediate fallback",
"Forward the fallback streams immediately at startup, when the primary streams are slow to start up and immediate output is required", "Forward the fallback streams immediately at startup, when the primary streams are slow to start up and immediate output is required",

View file

@ -83,14 +83,14 @@ impl ObjectImpl for VideoFallbackSource {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"uri", "uri",
"URI", "URI",
"URI to use for video in case the main stream doesn't work", "URI to use for video in case the main stream doesn't work",
None, None,
glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY, glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"min-latency", "min-latency",
"Minimum Latency", "Minimum Latency",
"Minimum Latency", "Minimum Latency",

View file

@ -682,7 +682,7 @@ impl ObjectImpl for FallbackSwitch {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"timeout", "timeout",
"Timeout", "Timeout",
"Timeout in nanoseconds", "Timeout in nanoseconds",
@ -691,21 +691,21 @@ impl ObjectImpl for FallbackSwitch {
DEFAULT_TIMEOUT.nseconds() as u64, DEFAULT_TIMEOUT.nseconds() as u64,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"active-pad", "active-pad",
"Active Pad", "Active Pad",
"Currently active pad. Writes are ignored if auto-switch=true", "Currently active pad. Writes are ignored if auto-switch=true",
gst::Pad::static_type(), gst::Pad::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"auto-switch", "auto-switch",
"Automatically switch pads", "Automatically switch pads",
"Automatically switch pads (If true, prefer primary sink, otherwise manual selection via the active-pad property)", "Automatically switch pads (If true, prefer primary sink, otherwise manual selection via the active-pad property)",
DEFAULT_AUTO_SWITCH, DEFAULT_AUTO_SWITCH,
glib::ParamFlags::READWRITE| gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE| gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"primary-health", "primary-health",
"Primary stream state", "Primary stream state",
"Reports the health of the primary stream on the sink pad", "Reports the health of the primary stream on the sink pad",
@ -713,7 +713,7 @@ impl ObjectImpl for FallbackSwitch {
DEFAULT_STREAM_HEALTH as i32, DEFAULT_STREAM_HEALTH as i32,
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"fallback-health", "fallback-health",
"Fallback stream state", "Fallback stream state",
"Reports the health of the fallback stream on the fallback_sink pad", "Reports the health of the fallback stream on the fallback_sink pad",
@ -721,7 +721,7 @@ impl ObjectImpl for FallbackSwitch {
DEFAULT_STREAM_HEALTH as i32, DEFAULT_STREAM_HEALTH as i32,
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"immediate-fallback", "immediate-fallback",
"Immediate fallback", "Immediate fallback",
"Forward the fallback stream immediately at startup, when the primary stream is slow to start up and immediate output is required", "Forward the fallback stream immediately at startup, when the primary stream is slow to start up and immediate output is required",

View file

@ -1752,21 +1752,21 @@ impl ObjectImpl for ToggleRecord {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"record", "record",
"Record", "Record",
"Enable/disable recording", "Enable/disable recording",
DEFAULT_RECORD, DEFAULT_RECORD,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"recording", "recording",
"Recording", "Recording",
"Whether recording is currently taking place", "Whether recording is currently taking place",
DEFAULT_RECORD, DEFAULT_RECORD,
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"is-live", "is-live",
"Live mode", "Live mode",
"Live mode: no \"gap eating\", forward incoming segment", "Live mode: no \"gap eating\", forward incoming segment",

View file

@ -228,7 +228,7 @@ impl ObjectImpl for CCDetect {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"window", "window",
"Window", "Window",
"Window of time (in ns) to determine if captions exist in the stream", "Window of time (in ns) to determine if captions exist in the stream",
@ -237,14 +237,14 @@ impl ObjectImpl for CCDetect {
DEFAULT_WINDOW.nseconds(), DEFAULT_WINDOW.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"cc608", "cc608",
"cc608", "cc608",
"Whether CEA608 captions (CC1/CC3) have been detected", "Whether CEA608 captions (CC1/CC3) have been detected",
DEFAULT_CC608, DEFAULT_CC608,
glib::ParamFlags::READABLE, glib::ParamFlags::READABLE,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"cc708", "cc708",
"cc608", "cc608",
"Whether CEA708 captions (cc_data) have been detected", "Whether CEA708 captions (cc_data) have been detected",

View file

@ -611,7 +611,7 @@ impl ObjectImpl for Cea608Overlay {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"field", "field",
"Field", "Field",
"The field to render the caption for when available, (-1=automatic)", "The field to render the caption for when available, (-1=automatic)",
@ -620,14 +620,14 @@ impl ObjectImpl for Cea608Overlay {
DEFAULT_FIELD, DEFAULT_FIELD,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"black-background", "black-background",
"Black background", "Black background",
"Whether a black background should be drawn behind text", "Whether a black background should be drawn behind text",
DEFAULT_BLACK_BACKGROUND, DEFAULT_BLACK_BACKGROUND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"timeout", "timeout",
"Timeout", "Timeout",
"Duration after which to erase overlay when no cc data has arrived for the selected field", "Duration after which to erase overlay when no cc data has arrived for the selected field",

View file

@ -1015,7 +1015,7 @@ impl ObjectImpl for Cea608ToJson {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_boolean( vec![glib::ParamSpecBoolean::new(
"unbuffered", "unbuffered",
"Unbuffered", "Unbuffered",
"Whether captions should be output at display time, \ "Whether captions should be output at display time, \

View file

@ -495,14 +495,14 @@ impl ObjectImpl for MccEnc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_string( glib::ParamSpecString::new(
"uuid", "uuid",
"UUID", "UUID",
"UUID for the output file", "UUID for the output file",
None, None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"creation-date", "creation-date",
"Creation Date", "Creation Date",
"Creation date for the output file", "Creation date for the output file",

View file

@ -564,14 +564,14 @@ impl ObjectImpl for TranscriberBin {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"passthrough", "passthrough",
"Passthrough", "Passthrough",
"Whether transcription should occur", "Whether transcription should occur",
DEFAULT_PASSTHROUGH, DEFAULT_PASSTHROUGH,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"latency", "latency",
"Latency", "Latency",
"Amount of milliseconds to allow the transcriber", "Amount of milliseconds to allow the transcriber",
@ -580,7 +580,7 @@ impl ObjectImpl for TranscriberBin {
DEFAULT_LATENCY.mseconds() as u32, DEFAULT_LATENCY.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"accumulate-time", "accumulate-time",
"accumulate-time", "accumulate-time",
"Cut-off time for textwrap accumulation, in milliseconds (0=do not accumulate). \ "Cut-off time for textwrap accumulation, in milliseconds (0=do not accumulate). \
@ -590,7 +590,7 @@ impl ObjectImpl for TranscriberBin {
DEFAULT_ACCUMULATE.mseconds() as u32, DEFAULT_ACCUMULATE.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"mode", "mode",
"Mode", "Mode",
"Which closed caption mode to operate in", "Which closed caption mode to operate in",
@ -598,14 +598,14 @@ impl ObjectImpl for TranscriberBin {
DEFAULT_MODE as i32, DEFAULT_MODE as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_boxed( glib::ParamSpecBoxed::new(
"cc-caps", "cc-caps",
"Closed Caption caps", "Closed Caption caps",
"The expected format of the closed captions", "The expected format of the closed captions",
gst::Caps::static_type(), gst::Caps::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_object( glib::ParamSpecObject::new(
"transcriber", "transcriber",
"Transcriber", "Transcriber",
"The transcriber element to use", "The transcriber element to use",

View file

@ -1064,7 +1064,7 @@ impl ObjectImpl for TtToCea608 {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"mode", "mode",
"Mode", "Mode",
"Which mode to operate in", "Which mode to operate in",
@ -1072,7 +1072,7 @@ impl ObjectImpl for TtToCea608 {
DEFAULT_MODE as i32, DEFAULT_MODE as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"origin-row", "origin-row",
"Origin row", "Origin row",
"Origin row, (-1=automatic)", "Origin row, (-1=automatic)",
@ -1081,7 +1081,7 @@ impl ObjectImpl for TtToCea608 {
DEFAULT_ORIGIN_ROW, DEFAULT_ORIGIN_ROW,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"origin-column", "origin-column",
"Origin column", "Origin column",
"Origin column", "Origin column",

View file

@ -233,7 +233,7 @@ impl ObjectSubclass for TtToJson {
impl ObjectImpl for TtToJson { impl ObjectImpl for TtToJson {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_enum( vec![glib::ParamSpecEnum::new(
"mode", "mode",
"Mode", "Mode",
"Which mode to operate in", "Which mode to operate in",

View file

@ -96,7 +96,7 @@ Time Code Rate=30DF\r\n\
enc.set_property("uuid", "14720C04-857D-40E2-86FC-F080DE44CE74"); enc.set_property("uuid", "14720C04-857D-40E2-86FC-F080DE44CE74");
enc.set_property( enc.set_property(
"creation-date", "creation-date",
glib::DateTime::new_utc(2018, 12, 27, 17, 34, 47.0).unwrap(), glib::DateTime::from_utc(2018, 12, 27, 17, 34, 47.0).unwrap(),
); );
} }

View file

@ -144,7 +144,7 @@ impl ObjectImpl for GifEnc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"repeat", "repeat",
"Repeat", "Repeat",
"Repeat (-1 to loop forever, 0 .. n finite repetitions)", "Repeat (-1 to loop forever, 0 .. n finite repetitions)",
@ -153,7 +153,7 @@ impl ObjectImpl for GifEnc {
DEFAULT_REPEAT, DEFAULT_REPEAT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"speed", "speed",
"Speed", "Speed",
"Speed (1 .. 30; higher value yields faster encoding)", "Speed (1 .. 30; higher value yields faster encoding)",

View file

@ -69,7 +69,7 @@ impl ObjectSubclass for PaintableSink {
impl ObjectImpl for PaintableSink { impl ObjectImpl for PaintableSink {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![glib::ParamSpec::new_object( vec![glib::ParamSpecObject::new(
"paintable", "paintable",
"Paintable", "Paintable",
"The Paintable the sink renders to", "The Paintable the sink renders to",

View file

@ -165,7 +165,7 @@ impl ObjectImpl for HsvDetector {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"hue-ref", "hue-ref",
"Hue reference", "Hue reference",
"Hue reference in degrees", "Hue reference in degrees",
@ -174,7 +174,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_HUE_REF, DEFAULT_HUE_REF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"hue-var", "hue-var",
"Hue variation", "Hue variation",
"Allowed hue variation from the reference hue angle, in degrees", "Allowed hue variation from the reference hue angle, in degrees",
@ -183,7 +183,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_HUE_VAR, DEFAULT_HUE_VAR,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"saturation-ref", "saturation-ref",
"Saturation reference", "Saturation reference",
"Reference saturation value", "Reference saturation value",
@ -192,7 +192,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_SATURATION_REF, DEFAULT_SATURATION_REF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"saturation-var", "saturation-var",
"Saturation variation", "Saturation variation",
"Allowed saturation variation from the reference value", "Allowed saturation variation from the reference value",
@ -201,7 +201,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_SATURATION_VAR, DEFAULT_SATURATION_VAR,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"value-ref", "value-ref",
"Value reference", "Value reference",
"Reference value value", "Reference value value",
@ -210,7 +210,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_VALUE_REF, DEFAULT_VALUE_REF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"value-var", "value-var",
"Value variation", "Value variation",
"Allowed value variation from the reference value", "Allowed value variation from the reference value",

View file

@ -123,7 +123,7 @@ impl ObjectImpl for HsvFilter {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"hue-shift", "hue-shift",
"Hue shift", "Hue shift",
"Hue shifting in degrees", "Hue shifting in degrees",
@ -132,7 +132,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_HUE_SHIFT, DEFAULT_HUE_SHIFT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"saturation-mul", "saturation-mul",
"Saturation multiplier", "Saturation multiplier",
"Saturation multiplier to apply to the saturation value (before offset)", "Saturation multiplier to apply to the saturation value (before offset)",
@ -141,7 +141,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_SATURATION_MUL, DEFAULT_SATURATION_MUL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"saturation-off", "saturation-off",
"Saturation offset", "Saturation offset",
"Saturation offset to add to the saturation value (after multiplier)", "Saturation offset to add to the saturation value (after multiplier)",
@ -150,7 +150,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_SATURATION_OFF, DEFAULT_SATURATION_OFF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"value-mul", "value-mul",
"Value multiplier", "Value multiplier",
"Value multiplier to apply to the value (before offset)", "Value multiplier to apply to the value (before offset)",
@ -159,7 +159,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_VALUE_MUL, DEFAULT_VALUE_MUL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
), ),
glib::ParamSpec::new_float( glib::ParamSpecFloat::new(
"value-off", "value-off",
"Value offset", "Value offset",
"Value offset to add to the value (after multiplier)", "Value offset to add to the value (after multiplier)",

View file

@ -215,7 +215,7 @@ impl ObjectImpl for Rav1Enc {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"speed-preset", "speed-preset",
"Speed Preset", "Speed Preset",
"Speed preset (10 fastest, 0 slowest)", "Speed preset (10 fastest, 0 slowest)",
@ -224,14 +224,14 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_SPEED_PRESET, DEFAULT_SPEED_PRESET,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_boolean( glib::ParamSpecBoolean::new(
"low-latency", "low-latency",
"Low Latency", "Low Latency",
"Low Latency", "Low Latency",
DEFAULT_LOW_LATENCY, DEFAULT_LOW_LATENCY,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"min-key-frame-interval", "min-key-frame-interval",
"Min Key Frame Interval", "Min Key Frame Interval",
"Min Key Frame Interval", "Min Key Frame Interval",
@ -240,7 +240,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_MIN_KEY_FRAME_INTERVAL, DEFAULT_MIN_KEY_FRAME_INTERVAL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint64( glib::ParamSpecUInt64::new(
"max-key-frame-interval", "max-key-frame-interval",
"Max Key Frame Interval", "Max Key Frame Interval",
"Max Key Frame Interval", "Max Key Frame Interval",
@ -249,7 +249,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_MAX_KEY_FRAME_INTERVAL, DEFAULT_MAX_KEY_FRAME_INTERVAL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_int( glib::ParamSpecInt::new(
"bitrate", "bitrate",
"Bitrate", "Bitrate",
"Bitrate", "Bitrate",
@ -258,7 +258,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_BITRATE, DEFAULT_BITRATE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"quantizer", "quantizer",
"Quantizer", "Quantizer",
"Quantizer", "Quantizer",
@ -267,7 +267,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_QUANTIZER as u32, DEFAULT_QUANTIZER as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"tile-cols", "tile-cols",
"Tile Cols", "Tile Cols",
"Tile Cols", "Tile Cols",
@ -276,7 +276,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_TILE_COLS as u32, DEFAULT_TILE_COLS as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"tile-rows", "tile-rows",
"Tile Rows", "Tile Rows",
"Tile Rows", "Tile Rows",
@ -285,7 +285,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_TILE_ROWS as u32, DEFAULT_TILE_ROWS as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"tiles", "tiles",
"Tiles", "Tiles",
"Tiles", "Tiles",
@ -294,7 +294,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_TILES as u32, DEFAULT_TILES as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_uint( glib::ParamSpecUInt::new(
"threads", "threads",
"Threads", "Threads",
"Threads", "Threads",

View file

@ -175,7 +175,7 @@ impl ObjectImpl for PngEncoder {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"compression-level", "compression-level",
"Compression level", "Compression level",
"Selects the compression algorithm to use", "Selects the compression algorithm to use",
@ -183,7 +183,7 @@ impl ObjectImpl for PngEncoder {
DEFAULT_COMPRESSION_LEVEL as i32, DEFAULT_COMPRESSION_LEVEL as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
), ),
glib::ParamSpec::new_enum( glib::ParamSpecEnum::new(
"filter", "filter",
"Filter", "Filter",
"Selects the filter type to applied", "Selects the filter type to applied",