mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
Fix build after glib SignalBuilder::param_types() API change
This commit is contained in:
parent
2c99f66ea5
commit
374bb8323f
4 changed files with 7 additions and 7 deletions
|
@ -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| {
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -584,7 +584,7 @@ impl ObjectImpl for HlsSink3 {
|
|||
static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::subclass::Signal::builder(SIGNAL_GET_PLAYLIST_STREAM)
|
||||
.param_types(&[String::static_type()])
|
||||
.param_types([String::static_type()])
|
||||
.return_type::<gio::OutputStream>()
|
||||
.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::<gio::OutputStream>()
|
||||
.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::<bool>()
|
||||
.class_handler(|_, args| {
|
||||
let element = args[0].get::<super::HlsSink3>().expect("signal arg");
|
||||
|
|
|
@ -654,7 +654,7 @@ impl ObjectImpl for FallbackSrc {
|
|||
static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| {
|
||||
vec![
|
||||
glib::subclass::Signal::builder("update-uri")
|
||||
.param_types(&[String::static_type()])
|
||||
.param_types([String::static_type()])
|
||||
.return_type::<String>()
|
||||
.class_handler(|_token, args| {
|
||||
// Simply return the input by default
|
||||
|
|
Loading…
Reference in a new issue