mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Win32 needs to have the socket subsystem initialised.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@758 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									6ae8511a66
								
							
						
					
					
						commit
						5342f3aef1
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -142,6 +142,13 @@ pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name) {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    pa_client_conf_env(c->conf);
 | 
					    pa_client_conf_env(c->conf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef OS_IS_WIN32
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        WSADATA data;
 | 
				
			||||||
 | 
					        WSAStartup(MAKEWORD(2, 0), &data);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    return c;
 | 
					    return c;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -180,6 +187,10 @@ static void context_free(pa_context *c) {
 | 
				
			||||||
    pa_xfree(c->name);
 | 
					    pa_xfree(c->name);
 | 
				
			||||||
    pa_xfree(c->server);
 | 
					    pa_xfree(c->server);
 | 
				
			||||||
    pa_xfree(c);
 | 
					    pa_xfree(c);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef OS_IS_WIN32
 | 
				
			||||||
 | 
					    WSACleanup();
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pa_context* pa_context_ref(pa_context *c) {
 | 
					pa_context* pa_context_ref(pa_context *c) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue