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:
Sebastian Dröge 2023-01-04 00:07:17 +02:00
parent a028e807df
commit b94bfe1613
2 changed files with 1 additions and 8 deletions

View file

@ -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},

View file

@ -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);