diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index 344c19b38..2279bb808 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -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}, diff --git a/gstreamer/src/plugin.rs b/gstreamer/src/plugin.rs index d0af1a36c..33f4aa79e 100644 --- a/gstreamer/src/plugin.rs +++ b/gstreamer/src/plugin.rs @@ -17,15 +17,9 @@ impl Plugin { } } } -} -pub trait GstPluginExtManual: 'static { #[doc(alias = "get_plugin_flags")] - fn plugin_flags(&self) -> PluginFlags; -} - -impl> 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);