mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-21 10:16:14 +00:00
media-session: fall back to card_name for description
Also try to use the alsa.card_name property for the description if there is nothing else. Fixes #524
This commit is contained in:
parent
c9354c238f
commit
de851018c1
|
@ -509,7 +509,8 @@ static int update_device_props(struct device *device)
|
|||
|
||||
if (!d)
|
||||
d = pw_properties_get(p, SPA_KEY_API_ALSA_CARD_NAME);
|
||||
|
||||
if (!d)
|
||||
d = pw_properties_get(p, "alsa.card_name");
|
||||
if (!d)
|
||||
d = "Unknown device";
|
||||
|
||||
|
|
Loading…
Reference in a new issue