Mark Segment as #[repr(C)]

This commit is contained in:
Sebastian Dröge 2017-12-16 17:30:37 +02:00
parent b9c4e4cd6e
commit 9608ef52ec

View file

@ -22,6 +22,7 @@ use std::fmt;
use std::marker::PhantomData;
pub type Segment = FormattedSegment<GenericFormattedValue>;
#[repr(C)]
pub struct FormattedSegment<T: FormattedValue>(ffi::GstSegment, PhantomData<T>);
impl Segment {