From: Konstanty Bialkowski Date: Mon, 3 May 2010 12:39:43 +0000 (+1000) Subject: Increase maximum allowed upnp response size. X-Git-Tag: 1.2.0-pre1~6774 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=03cc7a2d99c6ec877741b12bf14bcc81d20c8d6d;p=vlc Increase maximum allowed upnp response size. (Containers with >10 entries will no longer be ignored.) Signed-off-by: RĂ©mi Denis-Courmont --- diff --git a/modules/services_discovery/upnp_intel.cpp b/modules/services_discovery/upnp_intel.cpp index 6673244109..3fa459c870 100644 --- a/modules/services_discovery/upnp_intel.cpp +++ b/modules/services_discovery/upnp_intel.cpp @@ -122,6 +122,14 @@ static int Open( vlc_object_t *p_this ) return VLC_EGENERIC; } + res = UpnpSetMaxContentLength( 262144 ); + if( res != UPNP_E_SUCCESS ) + { + msg_Err( p_sd, "%s", UpnpGetErrorMessage( res ) ); + Close( (vlc_object_t*) p_sd ); + return VLC_EGENERIC; + } + return VLC_SUCCESS; }