[vlc-devel] UPnP module on Windows has been broken

Rémi Denis-Courmont remi at remlab.net
Fri Dec 2 07:27:31 CET 2011


On Fri, 2 Dec 2011 14:25:16 +0900, Naohiro KORIYAMA <nkoriyama at gmail.com>
wrote:
> 2011/12/2 Rémi Denis-Courmont <remi at remlab.net>:
>> Le jeudi 1 décembre 2011 21:15:35 Rémi Denis-Courmont, vous avez écrit
:
>>> That being said, unless the VLC replacement functions are buggy, use a
>>> different calling convention or a different prototype, it should still
>>> work
>>> by pure luck.
>>
>> In this particular case, I suspect the bug lies not in VLC
>> inet_pton()/inet_ntop() but in Windows sscanf()/printf().
> 
> libupnp is built with ipv6 disabled, but in the library use
> inet_ntop()/inet_ntop() with AF_INET6.
> On initialize libupnp, always error occurs at initialize(UPNP_E_FAILED).
> Adding implementation for AF_INET6 in compat/inet_pton.c, everything
goes
> fine.

That's a bug in libupnp then.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list