mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw-cat: don't put empty strings in metadata
This commit is contained in:
parent
4e3af9d122
commit
bb8bd3d76d
1 changed files with 2 additions and 1 deletions
|
|
@ -1123,7 +1123,8 @@ static int fill_properties(struct data *data)
|
|||
if (table[c] == NULL)
|
||||
continue;
|
||||
|
||||
if ((s = sf_get_string(data->file, c)) == NULL)
|
||||
if ((s = sf_get_string(data->file, c)) == NULL ||
|
||||
*s == '\0')
|
||||
continue;
|
||||
|
||||
pw_properties_set(data->props, table[c], s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue