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/threadshare/src/udpsrc | |
parent | 288acaa7ccb596e63af47b8ef7b8408a84f973b3 (diff) |
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
Diffstat (limited to 'generic/threadshare/src/udpsrc')
-rw-r--r-- | generic/threadshare/src/udpsrc/imp.rs | 20 |
1 files changed, 10 insertions, 10 deletions
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)", |