mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
Correctly mark Stream and StreamType as requiring version 1.10 at least
Should fix https://github.com/sdroege/gstreamer-rs/issues/68
This commit is contained in:
parent
9321f31d0a
commit
f2ef2b6bea
3 changed files with 10 additions and 0 deletions
|
@ -35441,6 +35441,7 @@ on the returned caps to modify it.</doc>
|
||||||
<class name="Stream"
|
<class name="Stream"
|
||||||
c:symbol-prefix="stream"
|
c:symbol-prefix="stream"
|
||||||
c:type="GstStream"
|
c:type="GstStream"
|
||||||
|
version="1.10"
|
||||||
parent="Object"
|
parent="Object"
|
||||||
glib:type-name="GstStream"
|
glib:type-name="GstStream"
|
||||||
glib:get-type="gst_stream_get_type"
|
glib:get-type="gst_stream_get_type"
|
||||||
|
@ -36103,6 +36104,7 @@ application of new streaming threads and their status.</doc>
|
||||||
</member>
|
</member>
|
||||||
</enumeration>
|
</enumeration>
|
||||||
<bitfield name="StreamType"
|
<bitfield name="StreamType"
|
||||||
|
version="1.10"
|
||||||
glib:type-name="GstStreamType"
|
glib:type-name="GstStreamType"
|
||||||
glib:get-type="gst_stream_type_get_type"
|
glib:get-type="gst_stream_type_get_type"
|
||||||
c:type="GstStreamType">
|
c:type="GstStreamType">
|
||||||
|
|
|
@ -775,6 +775,7 @@ impl SetValue for StreamFlags {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct StreamType: u32 {
|
pub struct StreamType: u32 {
|
||||||
const UNKNOWN = 1;
|
const UNKNOWN = 1;
|
||||||
|
@ -785,6 +786,7 @@ bitflags! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
impl ToGlib for StreamType {
|
impl ToGlib for StreamType {
|
||||||
type GlibType = ffi::GstStreamType;
|
type GlibType = ffi::GstStreamType;
|
||||||
|
@ -794,6 +796,7 @@ impl ToGlib for StreamType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
impl FromGlib<ffi::GstStreamType> for StreamType {
|
impl FromGlib<ffi::GstStreamType> for StreamType {
|
||||||
fn from_glib(value: ffi::GstStreamType) -> StreamType {
|
fn from_glib(value: ffi::GstStreamType) -> StreamType {
|
||||||
|
@ -802,24 +805,28 @@ impl FromGlib<ffi::GstStreamType> for StreamType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
impl StaticType for StreamType {
|
impl StaticType for StreamType {
|
||||||
fn static_type() -> Type {
|
fn static_type() -> Type {
|
||||||
unsafe { from_glib(ffi::gst_stream_type_get_type()) }
|
unsafe { from_glib(ffi::gst_stream_type_get_type()) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
impl<'a> FromValueOptional<'a> for StreamType {
|
impl<'a> FromValueOptional<'a> for StreamType {
|
||||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
Some(FromValue::from_value(value))
|
Some(FromValue::from_value(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
impl<'a> FromValue<'a> for StreamType {
|
impl<'a> FromValue<'a> for StreamType {
|
||||||
unsafe fn from_value(value: &Value) -> Self {
|
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)))
|
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 {
|
impl SetValue for StreamType {
|
||||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
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())
|
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits())
|
||||||
|
|
|
@ -162,6 +162,7 @@ pub use self::flags::SegmentFlags;
|
||||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
pub use self::flags::StackTraceFlags;
|
pub use self::flags::StackTraceFlags;
|
||||||
pub use self::flags::StreamFlags;
|
pub use self::flags::StreamFlags;
|
||||||
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
pub use self::flags::StreamType;
|
pub use self::flags::StreamType;
|
||||||
|
|
||||||
mod alias;
|
mod alias;
|
||||||
|
|
Loading…
Reference in a new issue