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

Martin Storsjö martin
Thu Jan 7 10:04:01 CET 2010


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

> On Wed, Jan 6, 2010 at 5:02 PM, Martin Storsj? <martin at martin.st> wrote:
> > The second
> > one simply links directly to getaddrinfo on windows, making it binary
> > incompatible with anything prior to XP.
> 
> That's fine with me.

Ok. Ramiro, is that also fine with you?

Attached updated versions of the two ipv6 enabling alternatives for 
windows. The backwards incompatible version fixes a minor issue in how I 
used temp_cflags/restore_flags in the previous version.

The bloated "load pointers dynamically" version is now much less thread 
unsafe, by simply not trying to clean up the loaded dll and the function 
pointers when ff_network_close is called. (That's the same as microsoft 
does in their own header, which provides encapsulation of similar logic.)

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win-ipv6-load.patch
Type: text/x-diff
Size: 4141 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100107/fa522354/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win-ipv6-link.patch
Type: text/x-diff
Size: 836 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100107/fa522354/attachment-0001.patch>



More information about the ffmpeg-devel mailing list