[FFmpeg-devel] [PATCH/RFC] Prefer getaddrinfo over gethostbyname

Martin Storsjö martin
Wed Jan 20 19:38:00 CET 2010

On Wed, 20 Jan 2010, Ronald S. Bultje wrote:

> Excellent work, both applied, thanks!

Thanks for handling this issue and getting the whole mess forward. :-)

> So I guess that only leaves udp.c to be fixed now?

Yes, exactly. (Well, ffserver needs updating, too, but I really don't want 
to be stretched that far, just when I originally wanted a threadsafe 
resolve_host ;-)

Here's an updated version of the fix for udp.c - it removes the large ipv6 
configure item and replaces it with checks for sockaddr_in6 and ipv6_mreq 
and conditionally compiles the small parts that actually use these 
features, removing the ipv4-only codepath.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Split-CONFIG_IPV6-into-checks-for-struct-sockaddr_in.patch
Type: text/x-diff
Size: 7078 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100120/e937ae84/attachment.patch>

More information about the ffmpeg-devel mailing list