Implement Sync and Send for Query

Fixes https://github.com/sdroege/gstreamer-rs/pull/35
This commit is contained in:
fengalin 2017-09-14 14:08:54 +02:00 committed by Sebastian Dröge
parent 608279c6d4
commit bb1b3cb1b4

View file

@ -21,6 +21,9 @@ use glib::translate::{from_glib, from_glib_full, ToGlib, ToGlibPtr};
#[repr(C)] #[repr(C)]
pub struct QueryRef(ffi::GstQuery); pub struct QueryRef(ffi::GstQuery);
unsafe impl Send for QueryRef {}
unsafe impl Sync for QueryRef {}
pub type Query = GstRc<QueryRef>; pub type Query = GstRc<QueryRef>;
unsafe impl MiniObject for QueryRef { unsafe impl MiniObject for QueryRef {