[FFmpeg-devel] [PATCH] Use getaddrinfo instead of gethostbyname, if available

Martin Storsjö martin
Fri Jan 1 14:59:20 CET 2010

On Fri, 1 Jan 2010, Martin Storsj? wrote:

> The attached patch makes resolve_host in libavformat use getaddrinfo 
> instead of gethostbyname, if getaddrinfo is available. gethostbyname isn't 
> necessarily thread safe (e.g. it isn't on glibc/linux, but on mac os x and 
> windows it is).

... and here's the patch, too...

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getaddrinfo.patch
Type: text/x-diff
Size: 1828 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100101/76a563dd/attachment.patch>

More information about the ffmpeg-devel mailing list