From 374bb8323ff187222c472457ac8b7921f48c8854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 17 Aug 2022 23:37:39 +0300 Subject: [PATCH] Fix build after glib SignalBuilder::param_types() API change --- generic/threadshare/src/appsrc/imp.rs | 2 +- generic/threadshare/src/udpsink/imp.rs | 4 ++-- net/hlssink3/src/imp.rs | 6 +++--- utils/fallbackswitch/src/fallbacksrc/imp.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index 7f5a6360..8389a21c 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> = Lazy::new(|| { vec![ glib::subclass::Signal::builder("push-buffer") - .param_types(&[gst::Buffer::static_type()]) + .param_types([gst::Buffer::static_type()]) .return_type::() .action() .class_handler(|_, args| { diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index a9efaca3..624c4189 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> = 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::().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::().expect("signal arg"); diff --git a/net/hlssink3/src/imp.rs b/net/hlssink3/src/imp.rs index 2adf4a34..d5dbb594 100644 --- a/net/hlssink3/src/imp.rs +++ b/net/hlssink3/src/imp.rs @@ -584,7 +584,7 @@ impl ObjectImpl for HlsSink3 { static SIGNALS: Lazy> = Lazy::new(|| { vec![ glib::subclass::Signal::builder(SIGNAL_GET_PLAYLIST_STREAM) - .param_types(&[String::static_type()]) + .param_types([String::static_type()]) .return_type::() .class_handler(|_, args| { let element = args[0] @@ -608,7 +608,7 @@ impl ObjectImpl for HlsSink3 { }) .build(), glib::subclass::Signal::builder(SIGNAL_GET_FRAGMENT_STREAM) - .param_types(&[String::static_type()]) + .param_types([String::static_type()]) .return_type::() .class_handler(|_, args| { let element = args[0] @@ -632,7 +632,7 @@ impl ObjectImpl for HlsSink3 { }) .build(), glib::subclass::Signal::builder(SIGNAL_DELETE_FRAGMENT) - .param_types(&[String::static_type()]) + .param_types([String::static_type()]) .return_type::() .class_handler(|_, args| { let element = args[0].get::().expect("signal arg"); diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs index 14e2973b..a99bbfe8 100644 --- a/utils/fallbackswitch/src/fallbacksrc/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs @@ -654,7 +654,7 @@ impl ObjectImpl for FallbackSrc { static SIGNALS: Lazy> = Lazy::new(|| { vec![ glib::subclass::Signal::builder("update-uri") - .param_types(&[String::static_type()]) + .param_types([String::static_type()]) .return_type::() .class_handler(|_token, args| { // Simply return the input by default