ts-jitterbuffer: Declare request-pt-map signal

This commit is contained in:
Mac Thi Kieu Van 2022-09-21 11:31:06 +00:00 committed by Sebastian Dröge
parent c32f0ca12e
commit 98fc0d5bd6
2 changed files with 25 additions and 9 deletions

View file

@ -5720,6 +5720,16 @@
"args": [],
"return-type": "void",
"when": "last"
},
"request-pt-map": {
"args": [
{
"name": "arg0",
"type": "guint"
}
],
"return-type": "GstCaps",
"when": "last"
}
}
},

View file

@ -1408,15 +1408,21 @@ impl ObjectImpl for JitterBuffer {
fn signals() -> &'static [glib::subclass::Signal] {
static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| {
vec![glib::subclass::Signal::builder("clear-pt-map")
.action()
.class_handler(|_, args| {
let element = args[0].get::<super::JitterBuffer>().expect("signal arg");
let jb = element.imp();
jb.clear_pt_map(&element);
None
})
.build()]
vec![
glib::subclass::Signal::builder("clear-pt-map")
.action()
.class_handler(|_, args| {
let element = args[0].get::<super::JitterBuffer>().expect("signal arg");
let jb = element.imp();
jb.clear_pt_map(&element);
None
})
.build(),
glib::subclass::Signal::builder("request-pt-map")
.param_types([u32::static_type()])
.return_type::<gst::Caps>()
.build(),
]
});
SIGNALS.as_ref()