Implement Send+Sync for AppSink/SrcCallbacks

This commit is contained in:
Sebastian Dröge 2017-12-16 14:14:29 +02:00
parent bd817c03d2
commit 8a807c4265
2 changed files with 6 additions and 0 deletions

View file

@ -22,6 +22,9 @@ pub struct AppSinkCallbacks {
callbacks: ffi::GstAppSinkCallbacks, callbacks: ffi::GstAppSinkCallbacks,
} }
unsafe impl Send for AppSinkCallbacks {}
unsafe impl Sync for AppSinkCallbacks {}
impl AppSinkCallbacks { impl AppSinkCallbacks {
pub fn new() -> AppSinkCallbacksBuilder { pub fn new() -> AppSinkCallbacksBuilder {
skip_assert_initialized!(); skip_assert_initialized!();

View file

@ -22,6 +22,9 @@ pub struct AppSrcCallbacks {
callbacks: ffi::GstAppSrcCallbacks, callbacks: ffi::GstAppSrcCallbacks,
} }
unsafe impl Send for AppSrcCallbacks {}
unsafe impl Sync for AppSrcCallbacks {}
impl AppSrcCallbacks { impl AppSrcCallbacks {
pub fn new() -> AppSrcCallbacksBuilder { pub fn new() -> AppSrcCallbacksBuilder {
skip_assert_initialized!(); skip_assert_initialized!();