diff --git a/gstreamer/src/event.rs b/gstreamer/src/event.rs index 0418f141d..e048f2a53 100644 --- a/gstreamer/src/event.rs +++ b/gstreamer/src/event.rs @@ -26,6 +26,9 @@ pub struct EventRef(ffi::GstEvent); pub type Event = GstRc; +unsafe impl Sync for EventRef {} +unsafe impl Send for EventRef {} + unsafe impl MiniObject for EventRef { type GstType = ffi::GstEvent; } diff --git a/gstreamer/src/message.rs b/gstreamer/src/message.rs index 48a062539..1549edf2a 100644 --- a/gstreamer/src/message.rs +++ b/gstreamer/src/message.rs @@ -27,6 +27,9 @@ pub struct MessageRef(ffi::GstMessage); pub type Message = GstRc; +unsafe impl Sync for MessageRef {} +unsafe impl Send for MessageRef {} + unsafe impl MiniObject for MessageRef { type GstType = ffi::GstMessage; }