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

Naohiro KORIYAMA nkoriyama at gmail.com
Fri Dec 2 06:25:16 CET 2011

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.

nkoriyama at gmail.com

More information about the vlc-devel mailing list