From 5a915e4732cc8685fc1a018a297e1ce228127051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 5 May 2021 10:30:08 +0300 Subject: [PATCH] gstreamer-app/appsink: Don't require Sync for the new-sample/new-preroll signal handlers Was accidentally changed by 2364361f6 --- gstreamer-app/Gir.toml | 8 ++++++++ gstreamer-app/src/auto/app_sink.rs | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gstreamer-app/Gir.toml b/gstreamer-app/Gir.toml index 1a6df5e95..fb238a820 100644 --- a/gstreamer-app/Gir.toml +++ b/gstreamer-app/Gir.toml @@ -61,6 +61,14 @@ final_type = true # Action signal ignore = true + [[object.signal]] + name = "new-sample" + concurrency = "send" + + [[object.signal]] + name = "new-preroll" + concurrency = "send" + [[object.signal]] name = "eos" concurrency = "send" diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 38f1da998..4d943ffad 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -210,13 +210,13 @@ impl AppSink { #[doc(alias = "new-preroll")] pub fn connect_new_preroll< - F: Fn(&AppSink) -> Result + Send + Sync + 'static, + F: Fn(&AppSink) -> Result + Send + 'static, >( &self, f: F, ) -> SignalHandlerId { unsafe extern "C" fn new_preroll_trampoline< - F: Fn(&AppSink) -> Result + Send + Sync + 'static, + F: Fn(&AppSink) -> Result + Send + 'static, >( this: *mut ffi::GstAppSink, f: glib::ffi::gpointer, @@ -239,13 +239,13 @@ impl AppSink { #[doc(alias = "new-sample")] pub fn connect_new_sample< - F: Fn(&AppSink) -> Result + Send + Sync + 'static, + F: Fn(&AppSink) -> Result + Send + 'static, >( &self, f: F, ) -> SignalHandlerId { unsafe extern "C" fn new_sample_trampoline< - F: Fn(&AppSink) -> Result + Send + Sync + 'static, + F: Fn(&AppSink) -> Result + Send + 'static, >( this: *mut ffi::GstAppSink, f: glib::ffi::gpointer,