mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
Update configuration for new API
This commit is contained in:
parent
2d4abeba23
commit
3bf5215872
3 changed files with 30 additions and 0 deletions
|
@ -53,6 +53,7 @@ generate = [
|
||||||
"Gst.TaskState",
|
"Gst.TaskState",
|
||||||
"Gst.PromiseResult",
|
"Gst.PromiseResult",
|
||||||
"Gst.ClockEntryType",
|
"Gst.ClockEntryType",
|
||||||
|
"Gst.PluginAPIFlags",
|
||||||
]
|
]
|
||||||
|
|
||||||
manual = [
|
manual = [
|
||||||
|
@ -1702,6 +1703,11 @@ status = "generate"
|
||||||
# can be called before gst_init()
|
# can be called before gst_init()
|
||||||
assertion = "skip"
|
assertion = "skip"
|
||||||
|
|
||||||
|
[[object.function]]
|
||||||
|
name = "type_is_plugin_api"
|
||||||
|
# confusing return type
|
||||||
|
ignore = true
|
||||||
|
|
||||||
[[object]]
|
[[object]]
|
||||||
name = "Gst.StateChangeReturn"
|
name = "Gst.StateChangeReturn"
|
||||||
status = "generate"
|
status = "generate"
|
||||||
|
|
|
@ -195,6 +195,10 @@ manual_traits = ["AggregatorExtManual"]
|
||||||
name = "latency"
|
name = "latency"
|
||||||
version = "1.14"
|
version = "1.14"
|
||||||
|
|
||||||
|
[[object.property]]
|
||||||
|
name = "start-time-selection"
|
||||||
|
version = "1.18"
|
||||||
|
|
||||||
[[object.property]]
|
[[object.property]]
|
||||||
name = "min-upstream-latency"
|
name = "min-upstream-latency"
|
||||||
# clock time instead of u64
|
# clock time instead of u64
|
||||||
|
|
|
@ -132,6 +132,26 @@ pub fn calculate_linear_regression(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
|
pub fn type_is_plugin_api(type_: glib::types::Type) -> Option<::PluginAPIFlags> {
|
||||||
|
assert_initialized_main_thread!();
|
||||||
|
unsafe {
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
|
let mut flags = mem::MaybeUninit::uninit();
|
||||||
|
let ret = from_glib(gst_sys::gst_type_is_plugin_api(
|
||||||
|
type_.to_glib(),
|
||||||
|
flags.as_mut_ptr(),
|
||||||
|
));
|
||||||
|
let flags = flags.assume_init();
|
||||||
|
if ret {
|
||||||
|
Some(from_glib(flags))
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(feature = "v1_12")]
|
||||||
|
|
Loading…
Reference in a new issue