mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst-inspect: print preset names
If the element supports presets and ships some, print them. Fixes #741427
This commit is contained in:
parent
d92e18b722
commit
a536c62ed6
1 changed files with 20 additions and 0 deletions
|
@ -884,6 +884,25 @@ print_children_info (GstElement * element)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
print_preset_list (GstElement * element)
|
||||
{
|
||||
gchar **presets, **preset;
|
||||
|
||||
if (!GST_IS_PRESET (element))
|
||||
return;
|
||||
|
||||
presets = gst_preset_get_preset_names (GST_PRESET (element));
|
||||
if (presets) {
|
||||
n_print ("\n");
|
||||
n_print ("Presets:\n");
|
||||
for (preset = presets; *preset; preset++) {
|
||||
n_print (" \"%s\"\n", *preset);
|
||||
}
|
||||
g_strfreev (presets);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
print_blacklist (void)
|
||||
{
|
||||
|
@ -1263,6 +1282,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
|
|||
print_element_properties_info (element);
|
||||
print_signal_info (element);
|
||||
print_children_info (element);
|
||||
print_preset_list (element);
|
||||
|
||||
gst_object_unref (element);
|
||||
gst_object_unref (factory);
|
||||
|
|
Loading…
Reference in a new issue