mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
use a dict for extra property info
A dictionary is probably more extensible
This commit is contained in:
parent
523868d6bd
commit
d79489b29b
2 changed files with 7 additions and 10 deletions
|
|
@ -377,8 +377,7 @@ spa_debug_props (const SpaProps *props, bool print_ranges)
|
|||
|
||||
info = &props->prop_info[i];
|
||||
|
||||
fprintf (stderr, " %-20s\n", info->name);
|
||||
fprintf (stderr, "%-23.23s flags: ", "");
|
||||
fprintf (stderr, " %-20s flags: ", info->name);
|
||||
if (info->flags & SPA_PROP_FLAG_READABLE)
|
||||
fprintf (stderr, "readable ");
|
||||
if (info->flags & SPA_PROP_FLAG_WRITABLE)
|
||||
|
|
@ -433,12 +432,9 @@ spa_debug_props (const SpaProps *props, bool print_ranges)
|
|||
fprintf (stderr, "\t: %-12s\n", rinfo->name);
|
||||
}
|
||||
}
|
||||
if (info->tags) {
|
||||
fprintf (stderr, "Tags: ");
|
||||
for (j = 0; info->tags[j]; j++) {
|
||||
fprintf (stderr, "\"%s\" ", info->tags[j]);
|
||||
}
|
||||
fprintf (stderr, "\n");
|
||||
if (info->info) {
|
||||
fprintf (stderr, "Info: \n");
|
||||
spa_debug_dict (info->info);
|
||||
}
|
||||
}
|
||||
return SPA_RESULT_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue