diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-08-17 23:37:39 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-08-17 23:37:39 +0300 |
commit | 374bb8323ff187222c472457ac8b7921f48c8854 (patch) | |
tree | 0c25fe56782d3d32f143c66469c2205b1e53b58f /generic/threadshare/src | |
parent | 2c99f66ea583b15aeff1ba9f9ae56a192d80ea13 (diff) |
Fix build after glib SignalBuilder::param_types() API change
Diffstat (limited to 'generic/threadshare/src')
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/udpsink/imp.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index 7f5a6360e..8389a21c3 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -508,7 +508,7 @@ impl ObjectImpl for AppSrc { static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| { vec![ glib::subclass::Signal::builder("push-buffer") - .param_types(&[gst::Buffer::static_type()]) + .param_types([gst::Buffer::static_type()]) .return_type::<bool>() .action() .class_handler(|_, args| { diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index a9efaca36..624c4189d 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -1104,7 +1104,7 @@ impl ObjectImpl for UdpSink { static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| { vec![ glib::subclass::Signal::builder("add") - .param_types(&[String::static_type(), i32::static_type()]) + .param_types([String::static_type(), i32::static_type()]) .action() .class_handler(|_, args| { let element = args[0].get::<super::UdpSink>().expect("signal arg"); @@ -1121,7 +1121,7 @@ impl ObjectImpl for UdpSink { }) .build(), glib::subclass::Signal::builder("remove") - .param_types(&[String::static_type(), i32::static_type()]) + .param_types([String::static_type(), i32::static_type()]) .action() .class_handler(|_, args| { let element = args[0].get::<super::UdpSink>().expect("signal arg"); |