Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-08-17 23:37:39 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-08-17 23:37:39 +0300
commit374bb8323ff187222c472457ac8b7921f48c8854 (patch)
tree0c25fe56782d3d32f143c66469c2205b1e53b58f /generic/threadshare/src
parent2c99f66ea583b15aeff1ba9f9ae56a192d80ea13 (diff)
Fix build after glib SignalBuilder::param_types() API change
Diffstat (limited to 'generic/threadshare/src')
-rw-r--r--generic/threadshare/src/appsrc/imp.rs2
-rw-r--r--generic/threadshare/src/udpsink/imp.rs4
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");