diff options
author | Mac Thi Kieu Van <macthikieuvan@gmail.com> | 2022-09-21 14:31:06 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2022-09-21 14:31:06 +0300 |
commit | 98fc0d5bd6e1f3863f90c81da1fe170a1bebdc5e (patch) | |
tree | cdf449674c3cc28a8be4c545edbda8bfc469bdd7 /generic/threadshare | |
parent | c32f0ca12e1682bd7da5133cd9ebef476d767028 (diff) |
ts-jitterbuffer: Declare `request-pt-map` signal
Diffstat (limited to 'generic/threadshare')
-rw-r--r-- | generic/threadshare/src/jitterbuffer/imp.rs | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index ded2413c..154af12e 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -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() |