[polypaudio-commits] r758 - /trunk/src/polyp/context.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Wed Apr 19 04:54:44 PDT 2006
Author: ossman
Date: Wed Apr 19 13:54:43 2006
New Revision: 758
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=758&root=polypaudio&view=rev
Log:
Win32 needs to have the socket subsystem initialised.
Modified:
trunk/src/polyp/context.c
Modified: trunk/src/polyp/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/context.c?rev=758&root=polypaudio&r1=757&r2=758&view=diff
==============================================================================
--- trunk/src/polyp/context.c (original)
+++ trunk/src/polyp/context.c Wed Apr 19 13:54:43 2006
@@ -141,6 +141,13 @@
pa_client_conf_from_x11(c->conf, NULL);
#endif
pa_client_conf_env(c->conf);
+
+#ifdef OS_IS_WIN32
+ {
+ WSADATA data;
+ WSAStartup(MAKEWORD(2, 0), &data);
+ }
+#endif
return c;
}
@@ -180,6 +187,10 @@
pa_xfree(c->name);
pa_xfree(c->server);
pa_xfree(c);
+
+#ifdef OS_IS_WIN32
+ WSACleanup();
+#endif
}
pa_context* pa_context_ref(pa_context *c) {
More information about the pulseaudio-commits
mailing list