Commit 50d35c96 authored by Rosen Penev's avatar Rosen Penev Committed by Max Kellermann

upnp: use UpnpInit2 always

libupnp 1.14 removes the non 2 function. Fixes compilation there. Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com> Closes https://github.com/MusicPlayerDaemon/MPD/issues/1499
parent 4260e788
ver 0.23.7 (not yet released)
* database
- upnp: support pupnp 1.14
* decoder
- opus: fix missing song length on high-latency files
* output
......
......@@ -36,11 +36,7 @@ static void
DoInit(const char* iface)
{
#ifdef UPNP_ENABLE_IPV6
auto code = UpnpInit2(iface, 0);
#else
auto code = UpnpInit(iface, 0);
#endif
if (code != UPNP_E_SUCCESS)
throw FormatRuntimeError("UpnpInit() failed: %s",
UpnpGetErrorMessage(code));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment