[Ffmpeg-devel] Network patch for MingW users

Måns Rullgård mans
Tue Feb 20 10:59:49 CET 2007


Michel Bardiaux said:
> Fran?ois Revol wrote:
> [snip]
>
>>>>
>>>> +#ifdef __MINGW32__
>>>> +    init_winsock();
>>>> +#endif
>>> Aaaaiiiieeee!  NO MORE OF THIS. PLEASE.
>>
>> Also that's totally definitely non threadsafe.
>
> Why? AFAIK WSAStartup is threadsafe. See e.g.
> http://www.tangentsoft.net/wskfaq/

Of more interest is what happens if WSAStartup() is called more than once.
Likewise for WSACleanup()

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list