vlc | branch: master | Konstantin Pavlov <[email protected]> | Thu Nov  8 
13:04:23 2018 +0300| [9e2aa213f423dec6161a14c3c36b3cd55f1f4825] | committer: 
Konstantin Pavlov

upnp: fix build with pupnp >= 1.8.3.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e2aa213f423dec6161a14c3c36b3cd55f1f4825
---

 modules/services_discovery/upnp.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/services_discovery/upnp.cpp 
b/modules/services_discovery/upnp.cpp
index 8d55dc43ba..828511bc12 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1518,7 +1518,7 @@ int MediaRendererList::onEvent( Upnp_EventType event_type,
     {
         case UPNP_DISCOVERY_SEARCH_RESULT:
         {
-            struct Upnp_Discovery *p_discovery = (struct Upnp_Discovery*)Event;
+            const UpnpDiscovery *p_discovery = (const UpnpDiscovery*)Event;
             IXML_Document *p_doc = NULL;
             int i_res;
 
@@ -1535,9 +1535,9 @@ int MediaRendererList::onEvent( Upnp_EventType event_type,
 
         case UPNP_DISCOVERY_ADVERTISEMENT_BYEBYE:
         {
-            struct Upnp_Discovery* p_discovery = ( struct Upnp_Discovery* 
)Event;
+            const UpnpDiscovery* p_discovery = ( const UpnpDiscovery* )Event;
 
-            removeRenderer( p_discovery->DeviceId );
+            removeRenderer( UpnpDiscovery_get_DeviceID_cstr ( p_discovery ) );
         }
         break;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to