mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-08 16:25:26 +00:00
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:
parent
5505715cc4
commit
5a915e4732
2 changed files with 12 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue