mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +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.PromiseResult",
|
||||
"Gst.ClockEntryType",
|
||||
"Gst.PluginAPIFlags",
|
||||
]
|
||||
|
||||
manual = [
|
||||
|
@ -1702,6 +1703,11 @@ status = "generate"
|
|||
# can be called before gst_init()
|
||||
assertion = "skip"
|
||||
|
||||
[[object.function]]
|
||||
name = "type_is_plugin_api"
|
||||
# confusing return type
|
||||
ignore = true
|
||||
|
||||
[[object]]
|
||||
name = "Gst.StateChangeReturn"
|
||||
status = "generate"
|
||||
|
|
|
@ -195,6 +195,10 @@ manual_traits = ["AggregatorExtManual"]
|
|||
name = "latency"
|
||||
version = "1.14"
|
||||
|
||||
[[object.property]]
|
||||
name = "start-time-selection"
|
||||
version = "1.18"
|
||||
|
||||
[[object.property]]
|
||||
name = "min-upstream-latency"
|
||||
# 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)]
|
||||
mod tests {
|
||||
#[cfg(feature = "v1_12")]
|
||||
|
|
Loading…
Reference in a new issue