Also implement Sync+Send for Event and Message

This commit is contained in:
Sebastian Dröge 2017-09-14 15:52:40 +03:00
parent bb1b3cb1b4
commit 499ca3eff3
2 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,9 @@ pub struct EventRef(ffi::GstEvent);
pub type Event = GstRc<EventRef>;
unsafe impl Sync for EventRef {}
unsafe impl Send for EventRef {}
unsafe impl MiniObject for EventRef {
type GstType = ffi::GstEvent;
}

View file

@ -27,6 +27,9 @@ pub struct MessageRef(ffi::GstMessage);
pub type Message = GstRc<MessageRef>;
unsafe impl Sync for MessageRef {}
unsafe impl Send for MessageRef {}
unsafe impl MiniObject for MessageRef {
type GstType = ffi::GstMessage;
}