mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-19 14:38:44 +00:00
element: display the rank in the description
This commit is contained in:
parent
18606b687c
commit
8f72b9ac79
1 changed files with 4 additions and 1 deletions
|
@ -72,9 +72,12 @@ impl ElementInfo {
|
|||
let mut desc = String::from("");
|
||||
let feature = ElementInfo::element_feature(element_name)
|
||||
.ok_or_else(|| glib::bool_error!("Failed get element feature"))?;
|
||||
|
||||
let rank = feature.rank();
|
||||
if let Ok(factory) = feature.downcast::<gst::ElementFactory>() {
|
||||
desc.push_str("<b>Factory details:</b>\n");
|
||||
desc.push_str("<b>Rank:</b>");
|
||||
desc.push_str(&format!("{:?}", rank));
|
||||
desc.push('\n');
|
||||
desc.push_str("<b>Name:</b>");
|
||||
desc.push_str(&factory.name());
|
||||
desc.push('\n');
|
||||
|
|
Loading…
Reference in a new issue