mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-24 02:50:34 +00:00
ts-jitterbuffer: Declare request-pt-map
signal
This commit is contained in:
parent
c32f0ca12e
commit
98fc0d5bd6
2 changed files with 25 additions and 9 deletions
|
@ -5720,6 +5720,16 @@
|
|||
"args": [],
|
||||
"return-type": "void",
|
||||
"when": "last"
|
||||
},
|
||||
"request-pt-map": {
|
||||
"args": [
|
||||
{
|
||||
"name": "arg0",
|
||||
"type": "guint"
|
||||
}
|
||||
],
|
||||
"return-type": "GstCaps",
|
||||
"when": "last"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue