gstreamer: Mark Structure and CapsFeatures as #[repr(transparent)] too

This commit is contained in:
Sebastian Dröge 2022-01-17 21:23:31 +02:00 committed by Sebastian Dröge
parent fb56bbda6e
commit 68d492bb33
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ use glib::translate::*;
use glib::StaticType;
#[doc(alias = "GstCapsFeatures")]
#[repr(transparent)]
pub struct CapsFeatures(ptr::NonNull<ffi::GstCapsFeatures>);
unsafe impl Send for CapsFeatures {}
unsafe impl Sync for CapsFeatures {}

View file

@ -63,6 +63,7 @@ impl GlibValueError for glib::value::ValueTypeMismatchOrNoneError {
}
#[doc(alias = "GstStructure")]
#[repr(transparent)]
pub struct Structure(ptr::NonNull<ffi::GstStructure>);
unsafe impl Send for Structure {}
unsafe impl Sync for Structure {}