forked from mirrors/gstreamer-rs
gstreamer: Remove useless GstPluginExtManual
trait
`Plugin` is a final type. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1182>
This commit is contained in:
parent
a028e807df
commit
b94bfe1613
2 changed files with 1 additions and 8 deletions
|
@ -325,7 +325,6 @@ pub mod prelude {
|
|||
pad::PadExtManual,
|
||||
param_spec::GstParamSpecBuilderExt,
|
||||
pipeline::GstPipelineExtManual,
|
||||
plugin::GstPluginExtManual,
|
||||
plugin_feature::PluginFeatureExtManual,
|
||||
tag_setter::TagSetterExtManual,
|
||||
tags::{CustomTag, Tag},
|
||||
|
|
|
@ -17,15 +17,9 @@ impl Plugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait GstPluginExtManual: 'static {
|
||||
#[doc(alias = "get_plugin_flags")]
|
||||
fn plugin_flags(&self) -> PluginFlags;
|
||||
}
|
||||
|
||||
impl<O: IsA<crate::Plugin>> GstPluginExtManual for O {
|
||||
fn plugin_flags(&self) -> PluginFlags {
|
||||
pub fn plugin_flags(&self) -> PluginFlags {
|
||||
unsafe {
|
||||
let ptr: *mut ffi::GstObject = self.as_ptr() as *mut _;
|
||||
let _guard = crate::utils::MutexGuard::lock(&(*ptr).lock);
|
||||
|
|
Loading…
Reference in a new issue