From c21f98d2c34fd574ecb9465f3b236216f924c16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 22 Sep 2018 10:56:25 +0300 Subject: [PATCH] Implement Sync for VideoInfo and AudioInfo They are immutable on the Rust side after all. --- gstreamer-audio/src/audio_info.rs | 1 + gstreamer-video/src/video_info.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/gstreamer-audio/src/audio_info.rs b/gstreamer-audio/src/audio_info.rs index d7824abd4..3039efca9 100644 --- a/gstreamer-audio/src/audio_info.rs +++ b/gstreamer-audio/src/audio_info.rs @@ -303,6 +303,7 @@ impl PartialEq for AudioInfo { impl Eq for AudioInfo {} unsafe impl Send for AudioInfo {} +unsafe impl Sync for AudioInfo {} impl glib::types::StaticType for AudioInfo { fn static_type() -> glib::types::Type { diff --git a/gstreamer-video/src/video_info.rs b/gstreamer-video/src/video_info.rs index fa7516dc3..8337b3954 100644 --- a/gstreamer-video/src/video_info.rs +++ b/gstreamer-video/src/video_info.rs @@ -658,6 +658,7 @@ impl PartialEq for VideoInfo { impl Eq for VideoInfo {} unsafe impl Send for VideoInfo {} +unsafe impl Sync for VideoInfo {} impl glib::types::StaticType for VideoInfo { fn static_type() -> glib::types::Type {