[vlc-commits] upnp: Use the default maximum content length of 16k.

Mirsal Ennaime git at videolan.org
Tue Dec 20 00:23:47 CET 2011


vlc/vlc-1.2 | branch: master | Mirsal Ennaime <mirsal at videolan.org> | Mon Dec 19 04:16:50 2011 +0100| [466cdbbcad779ebccd777ca6a70668ed9231b6da] | committer: Jean-Baptiste Kempf

upnp: Use the default maximum content length of 16k.

Setting libupnp's maximum content length to zero makes it unable to
fetch any didl instead of the probably expected unlimited behavior.
(cherry picked from commit b00b016b55143c18e4b49ee300d656813b162f56)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=466cdbbcad779ebccd777ca6a70668ed9231b6da
---

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

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index cc770d9..d572a3b 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -136,14 +136,6 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
-    i_res = UpnpSetMaxContentLength( 0 );
-    if( i_res != UPNP_E_SUCCESS )
-    {
-        msg_Err( p_sd, "Failed to set maximum content length: %s", UpnpGetErrorMessage( i_res ) );
-        Close( (vlc_object_t*) p_sd );
-        return VLC_EGENERIC;
-    }
-
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list