[vlc-commits] commit: Increase maximum allowed upnp response size. (Konstanty Bialkowski )

git at videolan.org git at videolan.org
Tue May 4 18:15:05 CEST 2010


vlc | branch: master | Konstanty Bialkowski <konstanty at ieee.org> | Mon May  3 22:39:43 2010 +1000| [03cc7a2d99c6ec877741b12bf14bcc81d20c8d6d] | committer: Rémi Denis-Courmont 

Increase maximum allowed upnp response size.

(Containers with >10 entries will no longer be ignored.)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/services_discovery/upnp_intel.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/services_discovery/upnp_intel.cpp b/modules/services_discovery/upnp_intel.cpp
index 6673244..3fa459c 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;
 }
 



More information about the vlc-commits mailing list