diff --git a/examples/src/bin/rtsp-server-subclass.rs b/examples/src/bin/rtsp-server-subclass.rs index d06baa92b..3b24e8d29 100644 --- a/examples/src/bin/rtsp-server-subclass.rs +++ b/examples/src/bin/rtsp-server-subclass.rs @@ -150,10 +150,6 @@ mod media_factory { pub struct Factory(ObjectSubclass) @extends gst_rtsp_server::RTSPMediaFactory; } - // Factories must be Send+Sync, and ours is - unsafe impl Send for Factory {} - unsafe impl Sync for Factory {} - impl Default for Factory { // Creates a new instance of our factory fn default() -> Factory { @@ -209,10 +205,6 @@ mod media { glib::wrapper! { pub struct Media(ObjectSubclass) @extends gst_rtsp_server::RTSPMedia; } - - // Medias must be Send+Sync, and ours is - unsafe impl Send for Media {} - unsafe impl Sync for Media {} } // Our custom RTSP server subclass that reports when clients are connecting and uses @@ -270,10 +262,6 @@ mod server { pub struct Server(ObjectSubclass) @extends gst_rtsp_server::RTSPServer; } - // Servers must be Send+Sync, and ours is - unsafe impl Send for Server {} - unsafe impl Sync for Server {} - impl Default for Server { // Creates a new instance of our factory fn default() -> Server { @@ -322,10 +310,6 @@ mod client { pub struct Client(ObjectSubclass) @extends gst_rtsp_server::RTSPClient; } - // Clients must be Send+Sync, and ours is - unsafe impl Send for Client {} - unsafe impl Sync for Client {} - impl Default for Client { // Creates a new instance of our factory fn default() -> Client { @@ -374,10 +358,6 @@ mod mount_points { pub struct MountPoints(ObjectSubclass) @extends gst_rtsp_server::RTSPMountPoints; } - // MountPoints must be Send+Sync, and ours is - unsafe impl Send for MountPoints {} - unsafe impl Sync for MountPoints {} - impl Default for MountPoints { // Creates a new instance of our factory fn default() -> Self { diff --git a/examples/src/bin/subclass.rs b/examples/src/bin/subclass.rs index d2354f81a..c552d9529 100644 --- a/examples/src/bin/subclass.rs +++ b/examples/src/bin/subclass.rs @@ -220,10 +220,6 @@ mod fir_filter { pub struct FirFilter(ObjectSubclass) @extends gst_base::BaseTransform, gst::Element, gst::Object; } - // GStreamer elements must be Send+Sync, and ours is - unsafe impl Send for FirFilter {} - unsafe impl Sync for FirFilter {} - impl FirFilter { // Creates a new instance of our filter with the given name pub fn new(name: Option<&str>) -> FirFilter { diff --git a/gstreamer/src/subclass/buffer_pool.rs b/gstreamer/src/subclass/buffer_pool.rs index ff6e612e5..67497bb5e 100644 --- a/gstreamer/src/subclass/buffer_pool.rs +++ b/gstreamer/src/subclass/buffer_pool.rs @@ -545,7 +545,6 @@ mod tests { const NAME: &'static str = "TestBufferPool"; type Type = super::TestBufferPool; type ParentType = BufferPool; - type Interfaces = (); } } diff --git a/gstreamer/src/subclass/element.rs b/gstreamer/src/subclass/element.rs index b7cfd4ed8..94bd127bc 100644 --- a/gstreamer/src/subclass/element.rs +++ b/gstreamer/src/subclass/element.rs @@ -780,9 +780,6 @@ mod tests { pub struct TestElement(ObjectSubclass) @extends Element, crate::Object; } - unsafe impl Send for TestElement {} - unsafe impl Sync for TestElement {} - impl TestElement { pub fn new(name: Option<&str>) -> Self { glib::Object::new(&[("name", &name)]).unwrap() diff --git a/gstreamer/src/subclass/pad.rs b/gstreamer/src/subclass/pad.rs index b81085687..1cc32afd5 100644 --- a/gstreamer/src/subclass/pad.rs +++ b/gstreamer/src/subclass/pad.rs @@ -129,9 +129,6 @@ mod tests { pub struct TestPad(ObjectSubclass) @extends Pad, crate::Object; } - unsafe impl Send for TestPad {} - unsafe impl Sync for TestPad {} - impl TestPad { pub fn new(name: &str, direction: PadDirection) -> Self { glib::Object::new(&[("name", &name), ("direction", &direction)]).unwrap()