]> git.sesse.net Git - vlc/commitdiff
Remove the old port 80 hack in the network subsystem
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 3 Mar 2008 17:06:48 +0000 (19:06 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 3 Mar 2008 17:08:29 +0000 (19:08 +0200)
The only paths that still appears not to set a default remote port are
the dccp/rtp and tcp/rtp accesses. And it makes no sense for these to
default to HTTP port 80 anyway.

Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>
src/network/tcp.c

index 2dbaa64487d2617177c809ff9422da131758b08d..ad63cbe21a52696880af18ec9ec7902e3bfaa65e 100644 (file)
@@ -85,10 +85,6 @@ int __net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
     if (evfd == -1)
         return -1;
 
-    if( i_port == 0 )
-        i_port = 80; /* historical VLC thing */
-
-
     memset( &hints, 0, sizeof( hints ) );
     hints.ai_socktype = SOCK_STREAM;