forked from mirrors/gstreamer-rs
Also implement Sync+Send for Event and Message
This commit is contained in:
parent
01d7501da2
commit
59c7ac6788
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue