diff options
author | François Laignel <fengalin@free.fr> | 2021-04-12 19:12:05 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-13 18:24:20 +0300 |
commit | 7d17f88941323013b7e2413aadaf53832a085195 (patch) | |
tree | 65a823b82489af25875062b96e37ef229506455e /generic | |
parent | 06accc8d98cc2876bcacfc6f9e097af690b4e64f (diff) |
post fix-getters manual updates
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/sodium/examples/decrypt_example.rs | 2 | ||||
-rw-r--r-- | generic/sodium/examples/encrypt_example.rs | 2 | ||||
-rw-r--r-- | generic/sodium/examples/generate_keys.rs | 2 | ||||
-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 | ||||
-rw-r--r-- | generic/threadshare/tests/proxy.rs | 4 |
17 files changed, 74 insertions, 74 deletions
diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs index b9bfe15a7..6627582dd 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::string( + vec![glib::ParamSpec::new_string( "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 36a5137bb..690cdf1f9 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::string( + vec![glib::ParamSpec::new_string( "location", "File Location", "Location of the file to read from", diff --git a/generic/sodium/examples/decrypt_example.rs b/generic/sodium/examples/decrypt_example.rs index e8a1566d1..78817e44a 100644 --- a/generic/sodium/examples/decrypt_example.rs +++ b/generic/sodium/examples/decrypt_example.rs @@ -68,7 +68,7 @@ fn main() -> Result<(), Box<dyn Error>> { .required(true) .takes_value(true), ) - .matches(); + .get_matches(); gst::init()?; gstsodium::plugin_register_static().expect("Failed to register sodium plugin"); diff --git a/generic/sodium/examples/encrypt_example.rs b/generic/sodium/examples/encrypt_example.rs index ec57ecc33..c4e6f66b6 100644 --- a/generic/sodium/examples/encrypt_example.rs +++ b/generic/sodium/examples/encrypt_example.rs @@ -68,7 +68,7 @@ fn main() -> Result<(), Box<dyn Error>> { .required(true) .takes_value(true), ) - .matches(); + .get_matches(); gst::init()?; gstsodium::plugin_register_static().expect("Failed to register sodium plugin"); diff --git a/generic/sodium/examples/generate_keys.rs b/generic/sodium/examples/generate_keys.rs index cf184e93f..fa5e137b8 100644 --- a/generic/sodium/examples/generate_keys.rs +++ b/generic/sodium/examples/generate_keys.rs @@ -92,7 +92,7 @@ fn main() { .short("j") .help("Write a JSON file instead of a key.prv/key.pub pair"), ) - .matches(); + .get_matches(); let keys = Keys::new(); diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index 80e1a774e..7ab81a38b 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -602,14 +602,14 @@ impl ObjectImpl for Decrypter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "receiver-key", "Receiver Key", "The private key of the Reeiver", glib::Bytes::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "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 415c8a4db..c84f104fa 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -393,21 +393,21 @@ impl ObjectImpl for Encrypter { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "receiver-key", "Receiver Key", "The public key of the Receiver", glib::Bytes::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "sender-key", "Sender Key", "The private key of the Sender", glib::Bytes::static_type(), glib::ParamFlags::WRITABLE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "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 932c6801b..f3952178a 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -529,14 +529,14 @@ impl ObjectImpl for AppSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -545,7 +545,7 @@ impl ObjectImpl for AppSrc { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-buffers", "Max Buffers", "Maximum number of buffers to queue up", @@ -554,14 +554,14 @@ impl ObjectImpl for AppSrc { DEFAULT_MAX_BUFFERS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "caps", "Caps", "Caps to use", gst::Caps::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boolean( + glib::ParamSpec::new_boolean( "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 352dfda2a..1fcbfbed1 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::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "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, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::object( + glib::ParamSpec::new_object( "active-pad", "Active Pad", "Currently active pad", diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index 4aa055527..7550d6b7c 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -1362,14 +1362,14 @@ impl ObjectImpl for JitterBuffer { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -1378,7 +1378,7 @@ impl ObjectImpl for JitterBuffer { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "latency", "Buffer latency in ms", "Amount of ms to buffer", @@ -1387,14 +1387,14 @@ impl ObjectImpl for JitterBuffer { DEFAULT_LATENCY_MS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boolean( + glib::ParamSpec::new_boolean( "do-lost", "Do Lost", "Send an event downstream when a packet is lost", DEFAULT_DO_LOST, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-dropout-time", "Max dropout time", "The maximum time (milliseconds) of missing packets tolerated.", @@ -1403,7 +1403,7 @@ impl ObjectImpl for JitterBuffer { DEFAULT_MAX_DROPOUT_TIME, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-misorder-time", "Max misorder time", "The maximum time (milliseconds) of misordered packets tolerated.", @@ -1412,7 +1412,7 @@ impl ObjectImpl for JitterBuffer { DEFAULT_MAX_MISORDER_TIME, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "stats", "Statistics", "Various statistics", diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs index 0c9358fbf..6c73f7522 100644 --- a/generic/threadshare/src/proxy/imp.rs +++ b/generic/threadshare/src/proxy/imp.rs @@ -590,7 +590,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::string( + vec![glib::ParamSpec::new_string( "proxy-context", "Proxy Context", "Context name of the proxy to share with", @@ -1130,14 +1130,14 @@ impl ObjectImpl for ProxySrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -1146,14 +1146,14 @@ impl ObjectImpl for ProxySrc { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "proxy-context", "Proxy Context", "Context name of the proxy to share with", Some(DEFAULT_PROXY_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-size-buffers", "Max Size Buffers", "Maximum number of buffers to queue (0=unlimited)", @@ -1162,7 +1162,7 @@ impl ObjectImpl for ProxySrc { DEFAULT_MAX_SIZE_BUFFERS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-size-bytes", "Max Size Bytes", "Maximum number of bytes to queue (0=unlimited)", @@ -1171,7 +1171,7 @@ impl ObjectImpl for ProxySrc { DEFAULT_MAX_SIZE_BYTES, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint64( + glib::ParamSpec::new_uint64( "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 cff65e292..e11f67bac 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -718,14 +718,14 @@ impl ObjectImpl for Queue { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -734,7 +734,7 @@ impl ObjectImpl for Queue { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-size-buffers", "Max Size Buffers", "Maximum number of buffers to queue (0=unlimited)", @@ -743,7 +743,7 @@ impl ObjectImpl for Queue { DEFAULT_MAX_SIZE_BUFFERS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "max-size-bytes", "Max Size Bytes", "Maximum number of bytes to queue (0=unlimited)", @@ -752,7 +752,7 @@ impl ObjectImpl for Queue { DEFAULT_MAX_SIZE_BYTES, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint64( + glib::ParamSpec::new_uint64( "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 86ed5b69a..3bff5fe58 100644 --- a/generic/threadshare/src/tcpclientsrc/imp.rs +++ b/generic/threadshare/src/tcpclientsrc/imp.rs @@ -569,14 +569,14 @@ impl ObjectImpl for TcpClientSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -585,14 +585,14 @@ impl ObjectImpl for TcpClientSrc { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "host", "Host", "The host IP address to receive packets from", DEFAULT_HOST, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::int( + glib::ParamSpec::new_int( "port", "Port", "Port to receive packets from", @@ -601,14 +601,14 @@ impl ObjectImpl for TcpClientSrc { DEFAULT_PORT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "caps", "Caps", "Caps to use", gst::Caps::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "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 93b556bad..43c06b11e 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -969,14 +969,14 @@ impl ObjectImpl for UdpSink { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -985,21 +985,21 @@ impl ObjectImpl for UdpSink { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boolean( + glib::ParamSpec::new_boolean( "sync", "Sync", "Sync on the clock", DEFAULT_SYNC, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "bind-address", "Bind Address", "Address to bind the socket to", Some(DEFAULT_BIND_ADDRESS), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::int( + glib::ParamSpec::new_int( "bind-port", "Bind Port", "Port to bind the socket to", @@ -1008,14 +1008,14 @@ impl ObjectImpl for UdpSink { DEFAULT_BIND_PORT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "bind-address-v6", "Bind Address V6", "Address to bind the V6 socket to", Some(DEFAULT_BIND_ADDRESS_V6), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::int( + glib::ParamSpec::new_int( "bind-port-v6", "Bind Port", "Port to bind the V6 socket to", @@ -1024,49 +1024,49 @@ impl ObjectImpl for UdpSink { DEFAULT_BIND_PORT_V6, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::object( + glib::ParamSpec::new_object( "socket", "Socket", "Socket to use for UDP transmission. (None == allocate)", gio::Socket::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::object( + glib::ParamSpec::new_object( "used-socket", "Used Socket", "Socket currently in use for UDP transmission. (None = no socket)", gio::Socket::static_type(), glib::ParamFlags::READABLE, ), - glib::ParamSpec::object( + glib::ParamSpec::new_object( "socket-v6", "Socket V6", "IPV6 Socket to use for UDP transmission. (None == allocate)", gio::Socket::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::object( + glib::ParamSpec::new_object( "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::boolean( + glib::ParamSpec::new_boolean( "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::boolean( + glib::ParamSpec::new_boolean( "loop", "Loop", "Set the multicast loop parameter.", DEFAULT_LOOP, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "ttl", "Time To Live", "Used for setting the unicast TTL parameter", @@ -1075,7 +1075,7 @@ impl ObjectImpl for UdpSink { DEFAULT_TTL, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "ttl-mc", "Time To Live Multicast", "Used for setting the multicast TTL parameter", @@ -1084,7 +1084,7 @@ impl ObjectImpl for UdpSink { DEFAULT_TTL_MC, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::int( + glib::ParamSpec::new_int( "qos-dscp", "QoS DSCP", "Quality of Service, differentiated services code point (-1 default)", @@ -1093,7 +1093,7 @@ impl ObjectImpl for UdpSink { DEFAULT_QOS_DSCP, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "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 107bd50c6..aa240d43b 100644 --- a/generic/threadshare/src/udpsrc/imp.rs +++ b/generic/threadshare/src/udpsrc/imp.rs @@ -710,14 +710,14 @@ impl ObjectImpl for UdpSrc { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { let mut properties = vec![ - glib::ParamSpec::string( + glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", Some(DEFAULT_CONTEXT), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "context-wait", "Context Wait", "Throttle poll loop to run at most once every this many ms", @@ -726,14 +726,14 @@ impl ObjectImpl for UdpSrc { DEFAULT_CONTEXT_WAIT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::string( + glib::ParamSpec::new_string( "address", "Address", "Address/multicast group to listen on", DEFAULT_ADDRESS, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::int( + glib::ParamSpec::new_int( "port", "Port", "Port to listen on", @@ -742,21 +742,21 @@ impl ObjectImpl for UdpSrc { DEFAULT_PORT, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boolean( + glib::ParamSpec::new_boolean( "reuse", "Reuse", "Allow reuse of the port", DEFAULT_REUSE, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boxed( + glib::ParamSpec::new_boxed( "caps", "Caps", "Caps to use", gst::Caps::static_type(), glib::ParamFlags::READWRITE, ), - glib::ParamSpec::uint( + glib::ParamSpec::new_uint( "mtu", "MTU", "Maximum expected packet size. This directly defines the allocation size of the receive buffer pool", @@ -765,7 +765,7 @@ impl ObjectImpl for UdpSrc { DEFAULT_MTU, glib::ParamFlags::READWRITE, ), - glib::ParamSpec::boolean( + glib::ParamSpec::new_boolean( "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", @@ -776,14 +776,14 @@ impl ObjectImpl for UdpSrc { #[cfg(not(windows))] { - properties.push(glib::ParamSpec::object( + properties.push(glib::ParamSpec::new_object( "socket", "Socket", "Socket to use for UDP reception. (None == allocate)", gio::Socket::static_type(), glib::ParamFlags::READWRITE, )); - properties.push(glib::ParamSpec::object( + properties.push(glib::ParamSpec::new_object( "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 d76731fa2..b8f42dfe1 100644 --- a/generic/threadshare/tests/pad.rs +++ b/generic/threadshare/tests/pad.rs @@ -323,7 +323,7 @@ mod imp_src { impl ObjectImpl for ElementSrcTest { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::string( + vec![glib::ParamSpec::new_string( "context", "Context", "Context name to share threads with", @@ -653,7 +653,7 @@ mod imp_sink { impl ObjectImpl for ElementSinkTest { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { - vec![glib::ParamSpec::boxed( + vec![glib::ParamSpec::new_boxed( "sender", "Sender", "Channel sender to forward the incoming items to", diff --git a/generic/threadshare/tests/proxy.rs b/generic/threadshare/tests/proxy.rs index 7e1b64e8b..a7481797e 100644 --- a/generic/threadshare/tests/proxy.rs +++ b/generic/threadshare/tests/proxy.rs @@ -121,8 +121,8 @@ fn test_from_pipeline_to_pipeline() { pipe_1.set_state(gst::State::Paused).unwrap(); pipe_2.set_state(gst::State::Paused).unwrap(); - let _ = pipe_1.state(gst::CLOCK_TIME_NONE); - let _ = pipe_2.state(gst::CLOCK_TIME_NONE); + let _ = pipe_1.get_state(gst::CLOCK_TIME_NONE); + let _ = pipe_2.get_state(gst::CLOCK_TIME_NONE); pipe_1.set_state(gst::State::Null).unwrap(); |