mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-24 16:08:16 +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
|
# Action signal
|
||||||
ignore = true
|
ignore = true
|
||||||
|
|
||||||
|
[[object.signal]]
|
||||||
|
name = "new-sample"
|
||||||
|
concurrency = "send"
|
||||||
|
|
||||||
|
[[object.signal]]
|
||||||
|
name = "new-preroll"
|
||||||
|
concurrency = "send"
|
||||||
|
|
||||||
[[object.signal]]
|
[[object.signal]]
|
||||||
name = "eos"
|
name = "eos"
|
||||||
concurrency = "send"
|
concurrency = "send"
|
||||||
|
|
|
@ -210,13 +210,13 @@ impl AppSink {
|
||||||
|
|
||||||
#[doc(alias = "new-preroll")]
|
#[doc(alias = "new-preroll")]
|
||||||
pub fn connect_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,
|
&self,
|
||||||
f: F,
|
f: F,
|
||||||
) -> SignalHandlerId {
|
) -> SignalHandlerId {
|
||||||
unsafe extern "C" fn new_preroll_trampoline<
|
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,
|
this: *mut ffi::GstAppSink,
|
||||||
f: glib::ffi::gpointer,
|
f: glib::ffi::gpointer,
|
||||||
|
@ -239,13 +239,13 @@ impl AppSink {
|
||||||
|
|
||||||
#[doc(alias = "new-sample")]
|
#[doc(alias = "new-sample")]
|
||||||
pub fn connect_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,
|
&self,
|
||||||
f: F,
|
f: F,
|
||||||
) -> SignalHandlerId {
|
) -> SignalHandlerId {
|
||||||
unsafe extern "C" fn new_sample_trampoline<
|
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,
|
this: *mut ffi::GstAppSink,
|
||||||
f: glib::ffi::gpointer,
|
f: glib::ffi::gpointer,
|
||||||
|
|
Loading…
Reference in a new issue