mirror of
https://github.com/pulseaudio/pulseaudio.git
synced 2024-11-23 01:47:17 +08:00
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:
parent
90124125de
commit
8ef0d597a1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user