From 03cc7a2d99c6ec877741b12bf14bcc81d20c8d6d Mon Sep 17 00:00:00 2001 From: Konstanty Bialkowski Date: Mon, 3 May 2010 22:39:43 +1000 Subject: [PATCH] Increase maximum allowed upnp response size. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (Containers with >10 entries will no longer be ignored.) Signed-off-by: Rémi Denis-Courmont --- modules/services_discovery/upnp_intel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.2