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 01d7501da2
commit 59c7ac6788
2 changed files with 6 additions and 0 deletions

View file

@ -25,6 +25,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

@ -26,6 +26,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;
}