[FFmpeg-devel] [PATCH/RFC] Prefer getaddrinfo over gethostbyname
Måns Rullgård
mans
Thu Jan 21 12:48:45 CET 2010
Martin Storsj? <martin at martin.st> writes:
> 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
>
> From fc1841c920dfda151cda0d83aea3b18ea6efaadb Mon Sep 17 00:00:00 2001
> From: Martin Storsjo <martin at martin.st>
> Date: Tue, 12 Jan 2010 12:19:35 +0100
> Subject: [PATCH] Split CONFIG_IPV6 into checks for struct sockaddr_in6 and ipv6_mreq
>
> Also remove the ipv4 codepath from udp.c.
> ---
> configure | 26 +++++------------------
> libavformat/udp.c | 57 ++++------------------------------------------------
> 2 files changed, 11 insertions(+), 72 deletions(-)
configure part ok
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list