[vlc-commits] [Git][videolan/vlc][3.0.x] upnp: server: handle libupnp 1.18.0 API change in Upnp_FunPtr

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Oct 21 05:16:11 UTC 2026



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


Commits:
d80c4667 by Olaf Hering at 2026-10-17T21:14:24+02:00
upnp: server: handle libupnp 1.18.0 API change in Upnp_FunPtr

The *event argument changed from "const void *" to "void *".

Co-authored-by: Abderhman Gamal <abderhmangamal246 at gmail.com>
Signed-off-by: Olaf Hering <olaf at aepfle.de>
(cherry picked from commit cb761db2f6d10feec82af20f81392f9ced6008c8)

- - - - -


1 changed file:

- modules/services_discovery/upnp.hpp


Changes:

=====================================
modules/services_discovery/upnp.hpp
=====================================
@@ -35,10 +35,10 @@
 
 #include <vlc_common.h>
 
-#if UPNP_VERSION < 10800
-typedef void* UpnpEventPtr;
-#else
+#if UPNP_VERSION_MAJOR == 17 || (UPNP_VERSION_MAJOR == 1 && (UPNP_VERSION < 11426 || (UPNP_VERSION > 11429 && UPNP_VERSION < 11800)))
 typedef const void* UpnpEventPtr;
+#else
+typedef void* UpnpEventPtr;
 #endif
 
 namespace SD



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d80c4667a32c33bb300bb6a43e0bda3713905e2b
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list