pw-cat: don't put empty strings in metadata

This commit is contained in:
Wim Taymans 2020-10-21 11:03:36 +02:00
parent 4e3af9d122
commit bb8bd3d76d

View file

@ -1123,7 +1123,8 @@ static int fill_properties(struct data *data)
if (table[c] == NULL) if (table[c] == NULL)
continue; continue;
if ((s = sf_get_string(data->file, c)) == NULL) if ((s = sf_get_string(data->file, c)) == NULL ||
*s == '\0')
continue; continue;
pw_properties_set(data->props, table[c], s); pw_properties_set(data->props, table[c], s);