mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
gstreamer: Mark Structure
and CapsFeatures
as #[repr(transparent)]
too
This commit is contained in:
parent
5b8f4a8632
commit
656e815b23
2 changed files with 2 additions and 0 deletions
|
@ -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 {}
|
||||
|
|
|
@ -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 {}
|
||||
|
|
Loading…
Reference in a new issue