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/appsrc | |
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/appsrc')
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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", |