gstreamer-app/appsink: Don't require Sync for the new-sample/new-preroll signal handlers

Was accidentally changed by 2364361f6
This commit is contained in:
Sebastian Dröge 2021-05-05 10:30:08 +03:00
parent 5505715cc4
commit 5a915e4732
2 changed files with 12 additions and 4 deletions

View file

@ -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"

View file

@ -210,13 +210,13 @@ impl AppSink {
#[doc(alias = "new-preroll")]
pub fn connect_new_preroll<
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + Sync + 'static,
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn new_preroll_trampoline<
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + Sync + 'static,
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + 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<gst::FlowSuccess, gst::FlowError> + Send + Sync + 'static,
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
>(
&self,
f: F,
) -> SignalHandlerId {
unsafe extern "C" fn new_sample_trampoline<
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + Sync + 'static,
F: Fn(&AppSink) -> Result<gst::FlowSuccess, gst::FlowError> + Send + 'static,
>(
this: *mut ffi::GstAppSink,
f: glib::ffi::gpointer,