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

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


vlc/vlc-1.1 | branch: master | Konstanty Bialkowski <konstanty at ieee.org> | Mon May  3 22:39:43 2010 +1000| [ab8e153218c9fa1365e69fd14c28d57b7d01477a] | 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>
(cherry picked from commit 03cc7a2d99c6ec877741b12bf14bcc81d20c8d6d)

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

 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