mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05: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
1 changed files with 2 additions and 1 deletions
|
|
@ -509,7 +509,8 @@ static int update_device_props(struct device *device)
|
||||||
|
|
||||||
if (!d)
|
if (!d)
|
||||||
d = pw_properties_get(p, SPA_KEY_API_ALSA_CARD_NAME);
|
d = pw_properties_get(p, SPA_KEY_API_ALSA_CARD_NAME);
|
||||||
|
if (!d)
|
||||||
|
d = pw_properties_get(p, "alsa.card_name");
|
||||||
if (!d)
|
if (!d)
|
||||||
d = "Unknown device";
|
d = "Unknown device";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue