mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2025-01-31 11:02:20 +00:00
element: publish plugin name and rank
This commit is contained in:
parent
d05afbc73c
commit
1d1a40114f
1 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,8 @@ use std::fmt::Write as _;
|
|||
#[derive(Debug, Default, Eq, Ord, PartialEq, PartialOrd)]
|
||||
pub struct ElementInfo {
|
||||
pub name: String,
|
||||
plugin_name: String,
|
||||
rank: i32,
|
||||
pub plugin_name: String,
|
||||
pub rank: i32,
|
||||
}
|
||||
|
||||
impl ElementInfo {
|
||||
|
@ -38,6 +38,7 @@ impl ElementInfo {
|
|||
|
||||
element.name = gst::PluginFeature::name(&feature).as_str().to_owned();
|
||||
element.plugin_name = gst::Plugin::plugin_name(&plugin).as_str().to_owned();
|
||||
element.rank = gst::PluginFeature::rank(&feature).into();
|
||||
elements.push(element);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue