mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
gst-inspect: only print presets line if num-presets > 0
Also check for an empty strv.
This commit is contained in:
parent
d3958b912e
commit
a4e561c7f8
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ print_preset_list (GstElement * element)
|
|||
return;
|
||||
|
||||
presets = gst_preset_get_preset_names (GST_PRESET (element));
|
||||
if (presets) {
|
||||
if (presets && *presets) {
|
||||
n_print ("\n");
|
||||
n_print ("Presets:\n");
|
||||
for (preset = presets; *preset; preset++) {
|
||||
|
|
Loading…
Reference in a new issue