diff --git a/gir-files/Gst-1.0.gir b/gir-files/Gst-1.0.gir index 21e38564b..57c1fe4b2 100644 --- a/gir-files/Gst-1.0.gir +++ b/gir-files/Gst-1.0.gir @@ -35441,6 +35441,7 @@ on the returned caps to modify it. diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index da419d076..c7a19624b 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -775,6 +775,7 @@ impl SetValue for StreamFlags { } } +#[cfg(any(feature = "v1_10", feature = "dox"))] bitflags! { pub struct StreamType: u32 { const UNKNOWN = 1; @@ -785,6 +786,7 @@ bitflags! { } } +#[cfg(any(feature = "v1_10", feature = "dox"))] #[doc(hidden)] impl ToGlib for StreamType { type GlibType = ffi::GstStreamType; @@ -794,6 +796,7 @@ impl ToGlib for StreamType { } } +#[cfg(any(feature = "v1_10", feature = "dox"))] #[doc(hidden)] impl FromGlib for StreamType { fn from_glib(value: ffi::GstStreamType) -> StreamType { @@ -802,24 +805,28 @@ impl FromGlib for StreamType { } } +#[cfg(any(feature = "v1_10", feature = "dox"))] impl StaticType for StreamType { fn static_type() -> Type { unsafe { from_glib(ffi::gst_stream_type_get_type()) } } } +#[cfg(any(feature = "v1_10", feature = "dox"))] impl<'a> FromValueOptional<'a> for StreamType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } +#[cfg(any(feature = "v1_10", feature = "dox"))] impl<'a> FromValue<'a> for StreamType { unsafe fn from_value(value: &Value) -> Self { from_glib(ffi::GstStreamType::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) } } +#[cfg(any(feature = "v1_10", feature = "dox"))] impl SetValue for StreamType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index b63b2843f..c371a5267 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -162,6 +162,7 @@ pub use self::flags::SegmentFlags; #[cfg(any(feature = "v1_12", feature = "dox"))] pub use self::flags::StackTraceFlags; pub use self::flags::StreamFlags; +#[cfg(any(feature = "v1_10", feature = "dox"))] pub use self::flags::StreamType; mod alias;