mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-26 07:00:07 -05:00
win32: Fix WSAStartup issues
WSAStartup was not being called for pacat and pactl built with meson, causing them to fail in pa_mainloop_new with "cannot create wakeup pipe". This issue also affects other applications linking to libpulse other than the pulseaudio daemon, which calls WSAStartup itself. When built with autotools, WSAStartup would have been called in DllMain, which is recommended against by the documentation [1]. To fix these issues, the WSAStartup/WSACleanup calls can be moved into pa_mainloop_new/pa_mainloop_free. [1] https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-wsastartup Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/456>
This commit is contained in:
parent
fa0d30eee1
commit
0edcf725bc
3 changed files with 21 additions and 57 deletions
|
|
@ -842,10 +842,6 @@ libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
|
|||
libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(LIBASYNCNS_LIBS)
|
||||
endif
|
||||
|
||||
if OS_IS_WIN32
|
||||
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/dllmain.c
|
||||
endif
|
||||
|
||||
if HAVE_DBUS
|
||||
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
|
||||
pulsecore/dbus-util.c pulsecore/dbus-util.h \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue