From b69043d4623d4407cdf1ecfec0bab486dec89719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 8 Mar 2022 14:46:13 +0200 Subject: [PATCH] gstreamer: Require `Send` and not `Sync` for the values of an `Array` / `List` `Sync` is more than required here: only sending of the values to another thread is required. --- gstreamer/src/value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer/src/value.rs b/gstreamer/src/value.rs index 91b02475b..952feb311 100644 --- a/gstreamer/src/value.rs +++ b/gstreamer/src/value.rs @@ -653,7 +653,7 @@ unsafe impl Send for Array {} unsafe impl Sync for Array {} impl Array { - pub fn new(values: impl IntoIterator) -> Self { + pub fn new(values: impl IntoIterator) -> Self { assert_initialized_main_thread!(); Self(values.into_iter().map(|v| v.to_send_value()).collect()) @@ -823,7 +823,7 @@ unsafe impl Send for List {} unsafe impl Sync for List {} impl List { - pub fn new(values: impl IntoIterator) -> Self { + pub fn new(values: impl IntoIterator) -> Self { assert_initialized_main_thread!(); Self(values.into_iter().map(|v| v.to_send_value()).collect())