diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-02-28 19:32:36 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-02-28 19:56:58 +0300 |
commit | b38f6cc731b1b4bcec1e19f7e5b9767d1804d343 (patch) | |
tree | 55e3a6a616d0b1a4549b3553ca744f58beeb09e6 /text | |
parent | d9f3e8e9e7249c3a0c8c251c7e371079f6846ff7 (diff) |
Remove now unnecessary `Send+Sync` impls for element/etc subclasses
This is now automatically implemented.
Diffstat (limited to 'text')
-rw-r--r-- | text/ahead/src/textahead/mod.rs | 5 | ||||
-rw-r--r-- | text/json/src/jsongstenc/mod.rs | 3 | ||||
-rw-r--r-- | text/json/src/jsongstparse/mod.rs | 3 | ||||
-rw-r--r-- | text/regex/src/gstregex/mod.rs | 3 | ||||
-rw-r--r-- | text/wrap/src/gsttextwrap/mod.rs | 3 |
5 files changed, 0 insertions, 17 deletions
diff --git a/text/ahead/src/textahead/mod.rs b/text/ahead/src/textahead/mod.rs index 65b688d9b..106111ad1 100644 --- a/text/ahead/src/textahead/mod.rs +++ b/text/ahead/src/textahead/mod.rs @@ -15,11 +15,6 @@ glib::wrapper! { pub struct TextAhead(ObjectSubclass<imp::TextAhead>) @extends gst::Element, gst::Object; } -// GStreamer elements need to be thread-safe. For the private implementation this is automatically -// enforced but for the public wrapper type we need to specify this manually. -unsafe impl Send for TextAhead {} -unsafe impl Sync for TextAhead {} - pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), diff --git a/text/json/src/jsongstenc/mod.rs b/text/json/src/jsongstenc/mod.rs index 8aa983295..f469b432d 100644 --- a/text/json/src/jsongstenc/mod.rs +++ b/text/json/src/jsongstenc/mod.rs @@ -15,9 +15,6 @@ glib::wrapper! { pub struct JsonGstEnc(ObjectSubclass<imp::JsonGstEnc>) @extends gst::Element, gst::Object; } -unsafe impl Send for JsonGstEnc {} -unsafe impl Sync for JsonGstEnc {} - pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), diff --git a/text/json/src/jsongstparse/mod.rs b/text/json/src/jsongstparse/mod.rs index 1be7a6ab5..5a466f48c 100644 --- a/text/json/src/jsongstparse/mod.rs +++ b/text/json/src/jsongstparse/mod.rs @@ -15,9 +15,6 @@ glib::wrapper! { pub struct JsonGstParse(ObjectSubclass<imp::JsonGstParse>) @extends gst::Element, gst::Object; } -unsafe impl Send for JsonGstParse {} -unsafe impl Sync for JsonGstParse {} - pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), diff --git a/text/regex/src/gstregex/mod.rs b/text/regex/src/gstregex/mod.rs index bf3f07e20..02b84cb65 100644 --- a/text/regex/src/gstregex/mod.rs +++ b/text/regex/src/gstregex/mod.rs @@ -15,9 +15,6 @@ glib::wrapper! { pub struct RegEx(ObjectSubclass<imp::RegEx>) @extends gst::Element, gst::Object; } -unsafe impl Send for RegEx {} -unsafe impl Sync for RegEx {} - pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register(Some(plugin), "regex", gst::Rank::None, RegEx::static_type()) } diff --git a/text/wrap/src/gsttextwrap/mod.rs b/text/wrap/src/gsttextwrap/mod.rs index 4493d5ef0..173c74a32 100644 --- a/text/wrap/src/gsttextwrap/mod.rs +++ b/text/wrap/src/gsttextwrap/mod.rs @@ -15,9 +15,6 @@ glib::wrapper! { pub struct TextWrap(ObjectSubclass<imp::TextWrap>) @extends gst::Element, gst::Object; } -unsafe impl Send for TextWrap {} -unsafe impl Sync for TextWrap {} - pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), |