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

Martin Storsjö martin
Thu Mar 4 23:39:00 CET 2010


On Thu, 4 Mar 2010, Ronald S. Bultje wrote:

> 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.

Ok, modified the patches in this way. This adds quite a bit of extra code 
to all of the protocols, but in principle still is a better solution. I'm 
not really sure which of them I prefer... What do you think?

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-function-ff_url_join-for-assembling-urls.patch
Type: text/x-diff
Size: 3796 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100305/6be3d1d4/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-ff_url_join-for-assembling-urls.patch
Type: text/x-diff
Size: 11589 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100305/6be3d1d4/attachment-0001.patch>



More information about the ffmpeg-devel mailing list