rtp-recv: Remove inappropriate byte order conversion

Conversion of the `service` argument of `getaddrinfo()` to big-endian
byte order causes module-rtp-recv to bind to an incorrect port (37670)
for SAP announcements on little-endian architectures

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/828>
This commit is contained in:
bert 2024-08-07 20:18:51 -04:00 committed by PulseAudio Marge Bot
parent 90124125de
commit 8ef0d597a1

View File

@ -710,7 +710,7 @@ int pa__init(pa_module*m) {
pa_zero(hints);
service = pa_sprintf_malloc("%d", htons(SAP_PORT));
service = pa_sprintf_malloc("%d", SAP_PORT);
hints.ai_flags = AI_NUMERICHOST;
if (getaddrinfo(sap_address, service, &hints, &sap_addrinfo) != 0) {