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

Michael Niedermayer michaelni
Fri Mar 5 12:13:25 CET 2010


On Thu, Mar 04, 2010 at 10:05:24AM -0500, Ronald S. Bultje wrote:
> 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.

that should be in url_open_protocol() then, not duplicated in each
protocol, that is assuming this open/close stuff is fully reentrant
and thread safe, otherwise it cannot be called from the protocols
like this at all

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100305/cbc01e30/attachment.pgp>



More information about the ffmpeg-devel mailing list