[FFmpeg-devel] [RFC] libavformat: URL reassembly with IPv6 addresses

Ronald S. Bultje rsbultje
Thu Mar 4 16:05:24 CET 2010


Hi,

On Thu, Mar 4, 2010 at 4:24 AM, Martin Storsj? <martin at martin.st> wrote:
> - Initialize the network system with ff_network_init before doing
> getaddrinfo. This function will be called before the tcp/udp protocols
> actually initialize the network, and without this, the getaddrinfo call
> fails on windows. This makes things a bit ugly when having to get a
> matching ff_network_close call in all codepaths, though. Any suggestions
> on ways to simplify it?

Caller should call ff_network_init() before calling this (preferably
in its _init() function). Caller should also call ff_network_close()
once the last call is done (preferably in its close() function).
Mention that in the doxy.

Rest of patch OK with me.

Ronald



More information about the ffmpeg-devel mailing list