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

Mirsal Ennaime git at videolan.org
Mon Dec 19 04:18:04 CET 2011


vlc | branch: master | Mirsal Ennaime <mirsal at videolan.org> | Mon Dec 19 04:16:50 2011 +0100| [b00b016b55143c18e4b49ee300d656813b162f56] | committer: Mirsal Ennaime

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.

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

 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 00750f5..075c9dd 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