Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Elmoussaoui <belmouss@redhat.com>2022-07-21 18:09:17 +0300
committerBilal Elmoussaoui <belmouss@redhat.com>2022-07-21 21:03:13 +0300
commit52973d975ef362ad528bf5271746ee9bc691cdd8 (patch)
tree993a32c391511b31ddd354300c0991bde0aec59f /generic/threadshare/src/appsrc
parent7d666ce5175f15dbfce9ff34e2e8e6205b9aab4f (diff)
Update per glib::SignalBuilder changes
Diffstat (limited to 'generic/threadshare/src/appsrc')
-rw-r--r--generic/threadshare/src/appsrc/imp.rs29
1 files changed, 14 insertions, 15 deletions
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs
index c6f3fcd0a..120ed55ff 100644
--- a/generic/threadshare/src/appsrc/imp.rs
+++ b/generic/threadshare/src/appsrc/imp.rs
@@ -511,21 +511,20 @@ impl ObjectImpl for AppSrc {
fn signals() -> &'static [glib::subclass::Signal] {
static SIGNALS: Lazy<Vec<glib::subclass::Signal>> = Lazy::new(|| {
vec![
- glib::subclass::Signal::builder(
- "push-buffer",
- &[gst::Buffer::static_type().into()],
- bool::static_type().into(),
- )
- .action()
- .class_handler(|_, args| {
- let element = args[0].get::<super::AppSrc>().expect("signal arg");
- let buffer = args[1].get::<gst::Buffer>().expect("signal arg");
- let appsrc = element.imp();
-
- Some(appsrc.push_buffer(&element, buffer).to_value())
- })
- .build(),
- glib::subclass::Signal::builder("end-of-stream", &[], bool::static_type().into())
+ glib::subclass::Signal::builder("push-buffer")
+ .param_types(&[gst::Buffer::static_type()])
+ .return_type::<bool>()
+ .action()
+ .class_handler(|_, args| {
+ let element = args[0].get::<super::AppSrc>().expect("signal arg");
+ let buffer = args[1].get::<gst::Buffer>().expect("signal arg");
+ let appsrc = element.imp();
+
+ Some(appsrc.push_buffer(&element, buffer).to_value())
+ })
+ .build(),
+ glib::subclass::Signal::builder("end-of-stream")
+ .return_type::<bool>()
.action()
.class_handler(|_, args| {
let element = args[0].get::<super::AppSrc>().expect("signal arg");