diff --git a/gstreamer-app/src/app_sink.rs b/gstreamer-app/src/app_sink.rs index 374524017..0e5ff59b4 100644 --- a/gstreamer-app/src/app_sink.rs +++ b/gstreamer-app/src/app_sink.rs @@ -22,6 +22,9 @@ pub struct AppSinkCallbacks { callbacks: ffi::GstAppSinkCallbacks, } +unsafe impl Send for AppSinkCallbacks {} +unsafe impl Sync for AppSinkCallbacks {} + impl AppSinkCallbacks { pub fn new() -> AppSinkCallbacksBuilder { skip_assert_initialized!(); diff --git a/gstreamer-app/src/app_src.rs b/gstreamer-app/src/app_src.rs index 9a8f193b3..7600a9573 100644 --- a/gstreamer-app/src/app_src.rs +++ b/gstreamer-app/src/app_src.rs @@ -22,6 +22,9 @@ pub struct AppSrcCallbacks { callbacks: ffi::GstAppSrcCallbacks, } +unsafe impl Send for AppSrcCallbacks {} +unsafe impl Sync for AppSrcCallbacks {} + impl AppSrcCallbacks { pub fn new() -> AppSrcCallbacksBuilder { skip_assert_initialized!();