]> git.sesse.net Git - vlc/commitdiff
upnp: Use the default maximum content length of 16k.
authorMirsal Ennaime <mirsal@videolan.org>
Mon, 19 Dec 2011 03:16:50 +0000 (04:16 +0100)
committerMirsal Ennaime <mirsal@videolan.org>
Mon, 19 Dec 2011 03:16:50 +0000 (04:16 +0100)
Setting libupnp's maximum content length to zero makes it unable to
fetch any didl instead of the probably expected unlimited behavior.

modules/services_discovery/upnp.cpp

index 00750f5905d3497d2c0da92ec37a5e2c9247727b..075c9dd8bcfbb01752cc77d6ed985c00980832f1 100644 (file)
@@ -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;
 }