module-raop-discover: Two small fixes

- Fixes comment listing the RAOP encryption types.
  Option 2 is not available, and 4 is /auth-setup

- Fixes value for AAC-ELD codec
This commit is contained in:
Christian Glombek 2023-07-05 08:09:57 +02:00 committed by Wim Taymans
parent 0501ef165a
commit f54938d24a

View file

@ -229,12 +229,12 @@ static void pw_properties_from_avahi_string(const char *key, const char *value,
value = "tcp";
pw_properties_set(props, "raop.transport", value);
} else if (spa_streq(key, "et")) {
/* Supported encryption types:
/* RAOP encryption types:
* 0 = none,
* 1 = RSA,
* 2 = FairPlay,
* 3 = MFiSAP,
* 4 = FairPlay SAPv2.5. */
* 3 = FairPlay,
* 4 = MFiSAP (/auth-setup),
* 5 = FairPlay SAPv2.5 */
if (str_in_list(value, ",", "1"))
value = "RSA";
else if (str_in_list(value, ",", "4"))
@ -254,7 +254,7 @@ static void pw_properties_from_avahi_string(const char *key, const char *value,
value = "ALAC";
else if (str_in_list(value, ",", "2"))
value = "AAC";
else if (str_in_list(value, ",", "2"))
else if (str_in_list(value, ",", "3"))
value = "AAC-ELD";
else
value = "unknown";