[vlc-commits] [Git][videolan/vlc][3.0.x] upnp: include iphlpapi.h to use local structures

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Dec 10 12:13:59 UTC 2025



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
6c250ae4 by Steve Lhomme at 2025-12-09T13:05:37+01:00
upnp: include iphlpapi.h to use local structures

They used to be included by pupnp. They don't use/need it anymore, but we do.

Similar to eacf1bd2b33b82c16d7c6ecc507744e0a70985f0.

- - - - -


1 changed file:

- modules/services_discovery/upnp.cpp


Changes:

=====================================
modules/services_discovery/upnp.cpp
=====================================
@@ -351,7 +351,7 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
             msg_Warn( m_sd, "Unexpected underlying protocol, the UPNP module "
                       "fully supports HTTP and has partial support for HTTPS" );
             return false;
-        } 
+        }
 
         std::string mrl = desc->location;
 
@@ -361,7 +361,7 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
         // Forge a root object ID in the MRL, this is used in the dir access.
         if ( desc->location.find( '?' ) == std::string::npos )
             mrl += "?ObjectID=0";
-        else 
+        else
             mrl += "&ObjectID=0";
 
         p_input_item = input_item_NewDirectory( mrl.c_str(),
@@ -1334,6 +1334,8 @@ UpnpInstanceWrapper::~UpnpInstanceWrapper()
 
 #ifdef _WIN32
 
+#include <iphlpapi.h> // IP_ADAPTER_ADDRESSES, IP_ADAPTER_MULTICAST_ADDRESS, etc
+
 static IP_ADAPTER_MULTICAST_ADDRESS* getMulticastAddress(IP_ADAPTER_ADDRESSES* p_adapter)
 {
     const unsigned long i_broadcast_ip = inet_addr("239.255.255.250");



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6c250ae48a3cef9453f2c56ab4724e91c85dcf16

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6c250ae48a3cef9453f2c56ab4724e91c85dcf16
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list