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:
Wim Taymans 2021-01-13 19:49:24 +01:00
parent c9354c238f
commit de851018c1

View file

@ -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";