[vlc-devel] commit: Remove the old port 80 hack in the network subsystem ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Mar 3 18:08:20 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Mon Mar  3 19:06:48 2008 +0200| [62796e96ebc124277c473cab1028b2be2b8980c8]

Remove the old port 80 hack in the network subsystem

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 at videolan.org>

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

 src/network/tcp.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/network/tcp.c b/src/network/tcp.c
index 2dbaa64..ad63cbe 100644
--- a/src/network/tcp.c
+++ b/src/network/tcp.c
@@ -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;
 




More information about the vlc-devel mailing list