mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-03 13:58:42 +00:00
Implement Send+Sync for AppSink/SrcCallbacks
This commit is contained in:
parent
bd817c03d2
commit
8a807c4265
2 changed files with 6 additions and 0 deletions
|
@ -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!();
|
||||
|
|
|
@ -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!();
|
||||
|
|
Loading…
Reference in a new issue