diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-20 13:25:14 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-20 15:31:06 +0300 |
commit | 55aad51141907ea7834eb0cbcdf6f92e3fdce5d1 (patch) | |
tree | f556878f25667e079ce6d0dac96bda76f5f8be31 /generic | |
parent | 288acaa7ccb596e63af47b8ef7b8408a84f973b3 (diff) |
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
Diffstat (limited to 'generic')
-rw-r--r-- | generic/file/src/filesink/imp.rs | 2 | ||||
-rw-r--r-- | generic/file/src/filesrc/imp.rs | 2 | ||||
-rw-r--r-- | generic/fmp4/src/fmp4mux/boxes.rs | 4 | ||||
-rw-r--r-- | generic/fmp4/src/fmp4mux/imp.rs | 8 | ||||
-rw-r--r-- | generic/sodium/src/decrypter/imp.rs | 4 | ||||
-rw-r--r-- | generic/sodium/src/encrypter/imp.rs | 6 | ||||
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 10 | ||||
-rw-r--r-- | generic/threadshare/src/inputselector/imp.rs | 6 | ||||
-rw-r--r-- | generic/threadshare/src/jitterbuffer/imp.rs | 14 | ||||
-rw-r--r-- | generic/threadshare/src/proxy/imp.rs | 14 | ||||
-rw-r--r-- | generic/threadshare/src/queue/imp.rs | 10 | ||||
-rw-r--r-- | generic/threadshare/src/tcpclientsrc/imp.rs | 12 | ||||
-rw-r--r-- | generic/threadshare/src/udpsink/imp.rs | 34 | ||||
-rw-r--r-- | generic/threadshare/src/udpsrc/imp.rs | 20 | ||||
-rw-r--r-- | generic/threadshare/tests/pad.rs | 4 |
15 files changed, 75 insertions, 75 deletions
diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs index d7ad84856..d1714e04d 100644 --- a/generic/file/src/filesink/imp.rs +++ b/generic/file/src/filesink/imp.rs @@ -117,7 +117,7 @@ impl ObjectSubclass for FileSink { impl ObjectImpl for FileSink { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::new_string( + vec![glib::ParamSpecString::new( "location", "File Location", "Location of the file to write", diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs index c8ae66b28..e038cd718 100644 --- a/generic/file/src/filesrc/imp.rs +++ b/generic/file/src/filesrc/imp.rs @@ -131,7 +131,7 @@ impl ObjectSubclass for FileSrc { impl ObjectImpl for FileSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::new_string( + vec![glib::ParamSpecString::new( "location", "File Location", "Location of the file to read from", diff --git a/generic/fmp4/src/fmp4mux/boxes.rs b/generic/fmp4/src/fmp4mux/boxes.rs index 7f9ae910b..7caa12835 100644 --- a/generic/fmp4/src/fmp4mux/boxes.rs +++ b/generic/fmp4/src/fmp4mux/boxes.rs @@ -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> { use gst::glib; - let base = glib::DateTime::new_utc(1904, 1, 1, 0, 0, 0.0)?; - let now = glib::DateTime::new_now_utc()?; + let base = glib::DateTime::from_utc(1904, 1, 1, 0, 0, 0.0)?; + let now = glib::DateTime::now_utc()?; let creation_time = u64::try_from(now.difference(&base).as_seconds()).expect("time before 1904"); diff --git a/generic/fmp4/src/fmp4mux/imp.rs b/generic/fmp4/src/fmp4mux/imp.rs index 26e0df144..f3106921f 100644 --- a/generic/fmp4/src/fmp4mux/imp.rs +++ b/generic/fmp4/src/fmp4mux/imp.rs @@ -1110,7 +1110,7 @@ impl ObjectImpl for FMP4Mux { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ // TODO: Add chunk-duration property separate from fragment-size - glib::ParamSpec::new_uint64( + glib::ParamSpecUInt64::new( "fragment-duration", "Fragment Duration", "Duration for each FMP4 fragment", @@ -1119,7 +1119,7 @@ impl ObjectImpl for FMP4Mux { DEFAULT_FRAGMENT_DURATION.nseconds(), glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), - glib::ParamSpec::new_enum( + glib::ParamSpecEnum::new( "header-update-mode", "Header update mode", "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, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "write-mfra", "Write mfra box", "Write fragment random access box at the end of the stream", DEFAULT_WRITE_MFRA, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "write-mehd", "Write mehd box", "Write movie extends header box with the duration at the end of the stream (needs a header-update-mode enabled)", diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index 8c5d27541..02e0faa00 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -598,14 +598,14 @@ impl ObjectImpl for Decrypter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "receiver-key", "Receiver Key", "The private key of the Reeiver", glib::Bytes::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "sender-key", "Sender Key", "The public key of the Sender", diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs index 5ae2e1887..fe57cf485 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -390,21 +390,21 @@ impl ObjectImpl for Encrypter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "receiver-key", "Receiver Key", "The public key of the Receiver", glib::Bytes::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "sender-key", "Sender Key", "The private key of the Sender", glib::Bytes::static_type(), glib::ParamFlags::WRITABLE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "block-size", "Block Size", "The block-size of the chunks", diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index 3e62421d2..4625ca493 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -527,14 +527,14 @@ impl ObjectImpl for AppSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-buffers", "Max Buffers", "Maximum number of buffers to queue up", @@ -552,14 +552,14 @@ impl ObjectImpl for AppSrc { DEFAULT_MAX_BUFFERS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "caps", "Caps", "Caps to use", gst::Caps::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "do-timestamp", "Do Timestamp", "Timestamp buffers with the current running time on arrival", diff --git a/generic/threadshare/src/inputselector/imp.rs b/generic/threadshare/src/inputselector/imp.rs index 972e81d46..3dfcca440 100644 --- a/generic/threadshare/src/inputselector/imp.rs +++ b/generic/threadshare/src/inputselector/imp.rs @@ -413,14 +413,14 @@ impl ObjectImpl for InputSelector { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_object( + glib::ParamSpecObject::new( "active-pad", "Active Pad", "Currently active pad", diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index 3ce777139..1431783cd 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -1343,14 +1343,14 @@ impl ObjectImpl for JitterBuffer { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "latency", "Buffer latency in ms", "Amount of ms to buffer", @@ -1368,14 +1368,14 @@ impl ObjectImpl for JitterBuffer { DEFAULT_LATENCY.mseconds() as u32, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "do-lost", "Do Lost", "Send an event downstream when a packet is lost", DEFAULT_DO_LOST, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-dropout-time", "Max dropout time", "The maximum time (milliseconds) of missing packets tolerated.", @@ -1384,7 +1384,7 @@ impl ObjectImpl for JitterBuffer { DEFAULT_MAX_DROPOUT_TIME, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-misorder-time", "Max misorder time", "The maximum time (milliseconds) of misordered packets tolerated.", @@ -1393,7 +1393,7 @@ impl ObjectImpl for JitterBuffer { DEFAULT_MAX_MISORDER_TIME, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "stats", "Statistics", "Various statistics", diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs index 29f8649d4..9daa98fe7 100644 --- a/generic/threadshare/src/proxy/imp.rs +++ b/generic/threadshare/src/proxy/imp.rs @@ -589,7 +589,7 @@ impl ObjectSubclass for ProxySink { impl ObjectImpl for ProxySink { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::new_string( + vec![glib::ParamSpecString::new( "proxy-context", "Proxy Context", "Context name of the proxy to share with", @@ -1131,14 +1131,14 @@ impl ObjectImpl for ProxySrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "proxy-context", "Proxy Context", "Context name of the proxy to share with", Some(DEFAULT_PROXY_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-size-buffers", "Max Size Buffers", "Maximum number of buffers to queue (0=unlimited)", @@ -1163,7 +1163,7 @@ impl ObjectImpl for ProxySrc { DEFAULT_MAX_SIZE_BUFFERS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-size-bytes", "Max Size Bytes", "Maximum number of bytes to queue (0=unlimited)", @@ -1172,7 +1172,7 @@ impl ObjectImpl for ProxySrc { DEFAULT_MAX_SIZE_BYTES, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint64( + glib::ParamSpecUInt64::new( "max-size-time", "Max Size Time", "Maximum number of nanoseconds to queue (0=unlimited)", diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index 0ab5825e3..c4b928728 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -717,14 +717,14 @@ impl ObjectImpl for Queue { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-size-buffers", "Max Size Buffers", "Maximum number of buffers to queue (0=unlimited)", @@ -742,7 +742,7 @@ impl ObjectImpl for Queue { DEFAULT_MAX_SIZE_BUFFERS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "max-size-bytes", "Max Size Bytes", "Maximum number of bytes to queue (0=unlimited)", @@ -751,7 +751,7 @@ impl ObjectImpl for Queue { DEFAULT_MAX_SIZE_BYTES, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint64( + glib::ParamSpecUInt64::new( "max-size-time", "Max Size Time", "Maximum number of nanoseconds to queue (0=unlimited)", diff --git a/generic/threadshare/src/tcpclientsrc/imp.rs b/generic/threadshare/src/tcpclientsrc/imp.rs index f0475d410..e568f5d21 100644 --- a/generic/threadshare/src/tcpclientsrc/imp.rs +++ b/generic/threadshare/src/tcpclientsrc/imp.rs @@ -568,14 +568,14 @@ impl ObjectImpl for TcpClientSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "host", "Host", "The host IP address to receive packets from", DEFAULT_HOST, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_int( + glib::ParamSpecInt::new( "port", "Port", "Port to receive packets from", @@ -600,14 +600,14 @@ impl ObjectImpl for TcpClientSrc { DEFAULT_PORT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "caps", "Caps", "Caps to use", gst::Caps::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "blocksize", "Blocksize", "Size in bytes to read per buffer (-1 = default)", diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index 18f7e0851..e5c01b888 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -966,14 +966,14 @@ impl ObjectImpl for UdpSink { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "sync", "Sync", "Sync on the clock", DEFAULT_SYNC, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "bind-address", "Bind Address", "Address to bind the socket to", Some(DEFAULT_BIND_ADDRESS), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_int( + glib::ParamSpecInt::new( "bind-port", "Bind Port", "Port to bind the socket to", @@ -1005,14 +1005,14 @@ impl ObjectImpl for UdpSink { DEFAULT_BIND_PORT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "bind-address-v6", "Bind Address V6", "Address to bind the V6 socket to", Some(DEFAULT_BIND_ADDRESS_V6), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_int( + glib::ParamSpecInt::new( "bind-port-v6", "Bind Port", "Port to bind the V6 socket to", @@ -1021,49 +1021,49 @@ impl ObjectImpl for UdpSink { DEFAULT_BIND_PORT_V6, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_object( + glib::ParamSpecObject::new( "socket", "Socket", "Socket to use for UDP transmission. (None == allocate)", gio::Socket::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_object( + glib::ParamSpecObject::new( "used-socket", "Used Socket", "Socket currently in use for UDP transmission. (None = no socket)", gio::Socket::static_type(), glib::ParamFlags::READABLE, ), - glib::ParamSpec::new_object( + glib::ParamSpecObject::new( "socket-v6", "Socket V6", "IPV6 Socket to use for UDP transmission. (None == allocate)", gio::Socket::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_object( + glib::ParamSpecObject::new( "used-socket-v6", "Used Socket V6", "V6 Socket currently in use for UDP transmission. (None = no socket)", gio::Socket::static_type(), glib::ParamFlags::READABLE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "auto-multicast", "Auto multicast", "Automatically join/leave the multicast groups, FALSE means user has to do it himself", DEFAULT_AUTO_MULTICAST, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "loop", "Loop", "Set the multicast loop parameter.", DEFAULT_LOOP, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "ttl", "Time To Live", "Used for setting the unicast TTL parameter", @@ -1072,7 +1072,7 @@ impl ObjectImpl for UdpSink { DEFAULT_TTL, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "ttl-mc", "Time To Live Multicast", "Used for setting the multicast TTL parameter", @@ -1081,7 +1081,7 @@ impl ObjectImpl for UdpSink { DEFAULT_TTL_MC, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_int( + glib::ParamSpecInt::new( "qos-dscp", "QoS DSCP", "Quality of Service, differentiated services code point (-1 default)", @@ -1090,7 +1090,7 @@ impl ObjectImpl for UdpSink { DEFAULT_QOS_DSCP, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "clients", "Clients", "A comma separated list of host:port pairs with destinations", diff --git a/generic/threadshare/src/udpsrc/imp.rs b/generic/threadshare/src/udpsrc/imp.rs index af8855928..5a423fa43 100644 --- a/generic/threadshare/src/udpsrc/imp.rs +++ b/generic/threadshare/src/udpsrc/imp.rs @@ -709,14 +709,14 @@ impl ObjectImpl for UdpSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { let mut properties = vec![ - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "context-wait", "Context Wait", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_string( + glib::ParamSpecString::new( "address", "Address", "Address/multicast group to listen on", DEFAULT_ADDRESS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_int( + glib::ParamSpecInt::new( "port", "Port", "Port to listen on", @@ -741,21 +741,21 @@ impl ObjectImpl for UdpSrc { DEFAULT_PORT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "reuse", "Reuse", "Allow reuse of the port", DEFAULT_REUSE, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boxed( + glib::ParamSpecBoxed::new( "caps", "Caps", "Caps to use", gst::Caps::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_uint( + glib::ParamSpecUInt::new( "mtu", "MTU", "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::new_boolean( + glib::ParamSpecBoolean::new( "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", @@ -775,14 +775,14 @@ impl ObjectImpl for UdpSrc { #[cfg(not(windows))] { - properties.push(glib::ParamSpec::new_object( + properties.push(glib::ParamSpecObject::new( "socket", "Socket", "Socket to use for UDP reception. (None == allocate)", gio::Socket::static_type(), glib::ParamFlags::READWRITE, )); - properties.push(glib::ParamSpec::new_object( + properties.push(glib::ParamSpecObject::new( "used-socket", "Used Socket", "Socket currently in use for UDP reception. (None = no socket)", diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs index d958e4e77..91476c462 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -325,7 +325,7 @@ mod imp_src { impl ObjectImpl for ElementSrcTest { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::new_string( + vec![glib::ParamSpecString::new( "context", "Context", "Context name to share threads with", @@ -657,7 +657,7 @@ mod imp_sink { impl ObjectImpl for ElementSinkTest { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::new_boxed( + vec![glib::ParamSpecBoxed::new( "sender", "Sender", "Channel sender to forward the incoming items to", |