Commit 9e2aa213 authored by Konstantin Pavlov's avatar Konstantin Pavlov

upnp: fix build with pupnp >= 1.8.3.

parent 5b0121ad
......@@ -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;
......
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