forked from mirrors/gstreamer-rs
gstreamer: move update_registry() as Registry method
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1355>
This commit is contained in:
parent
a649e7dead
commit
9bcf48050b
2 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,7 @@ use crate::Tracer;
|
||||||
|
|
||||||
// import only functions which do not have their own module as namespace
|
// import only functions which do not have their own module as namespace
|
||||||
pub use crate::auto::functions::{
|
pub use crate::auto::functions::{
|
||||||
main_executable_path, update_registry, util_get_timestamp, version, version_string,
|
main_executable_path, util_get_timestamp, version, version_string,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[doc(alias = "gst_calculate_linear_regression")]
|
#[doc(alias = "gst_calculate_linear_regression")]
|
||||||
|
|
|
@ -5,6 +5,11 @@ use glib::translate::*;
|
||||||
use crate::{Plugin, PluginFeature, Registry};
|
use crate::{Plugin, PluginFeature, Registry};
|
||||||
|
|
||||||
impl Registry {
|
impl Registry {
|
||||||
|
#[doc(alias = "gst_registry_update")]
|
||||||
|
pub fn update() -> Result<(), glib::BoolError> {
|
||||||
|
crate::auto::functions::update_registry()
|
||||||
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_registry_feature_filter")]
|
#[doc(alias = "gst_registry_feature_filter")]
|
||||||
pub fn features_filtered<P: FnMut(&PluginFeature) -> bool>(
|
pub fn features_filtered<P: FnMut(&PluginFeature) -> bool>(
|
||||||
&self,
|
&self,
|
||||||
|
|
Loading…
Reference in a new issue