diff --git a/gstreamer/src/segment.rs b/gstreamer/src/segment.rs index 5e43eaba4..7d0494e65 100644 --- a/gstreamer/src/segment.rs +++ b/gstreamer/src/segment.rs @@ -22,6 +22,7 @@ use std::fmt; use std::marker::PhantomData; pub type Segment = FormattedSegment; +#[repr(C)] pub struct FormattedSegment(ffi::GstSegment, PhantomData); impl Segment {