From 8a807c4265490bfc5dcc97d1c4b24412e2fa707a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 16 Dec 2017 14:14:29 +0200 Subject: [PATCH] Implement Send+Sync for AppSink/SrcCallbacks --- gstreamer-app/src/app_sink.rs | 3 +++ gstreamer-app/src/app_src.rs | 3 +++ 2 files changed, 6 insertions(+) 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!();