From 01d7501da23d6bbdce47855dd5e7f2662ab09010 Mon Sep 17 00:00:00 2001 From: fengalin Date: Thu, 14 Sep 2017 14:08:54 +0200 Subject: [PATCH] Implement Sync and Send for Query Fixes https://github.com/sdroege/gstreamer-rs/pull/35 --- gstreamer/src/query.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gstreamer/src/query.rs b/gstreamer/src/query.rs index 55cb5e7a0..98f3ac623 100644 --- a/gstreamer/src/query.rs +++ b/gstreamer/src/query.rs @@ -21,6 +21,9 @@ use glib::translate::{from_glib, from_glib_full, ToGlib, ToGlibPtr}; #[repr(C)] pub struct QueryRef(ffi::GstQuery); +unsafe impl Send for QueryRef {} +unsafe impl Sync for QueryRef {} + pub type Query = GstRc; unsafe impl MiniObject for QueryRef {