--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- a/modules/services_discovery/upnp.cpp +++ b/modules/services_discovery/upnp.cpp @@ -1700,19 +1700,12 @@ UpnpInstanceWrapper *UpnpInstanceWrapper::get(vlc_object_t *p_obj, services_disc return NULL; } - #ifdef UPNP_ENABLE_IPV6 char* psz_miface = var_InheritString( p_obj, "miface" ); if (psz_miface == NULL) psz_miface = getPreferedAdapter(); msg_Info( p_obj, "Initializing libupnp on '%s' interface", psz_miface ? psz_miface : "default" ); int i_res = UpnpInit2( psz_miface, 0 ); free( psz_miface ); - #else - /* If UpnpInit2 isnt available, initialize on first IPv4-capable interface */ - char *psz_hostip = getIpv4ForMulticast(); - int i_res = UpnpInit( psz_hostip, 0 ); - free(psz_hostip); - #endif /* UPNP_ENABLE_IPV6 */ if( i_res != UPNP_E_SUCCESS ) { msg_Err( p_obj, "Initialization failed: %s", UpnpGetErrorMessage( i_res ) );