]> git.sesse.net Git - vlc/commitdiff
Remove the 1234 default UDP port hack
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 4 Mar 2008 18:18:09 +0000 (20:18 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 4 Mar 2008 18:18:09 +0000 (20:18 +0200)
None of the three net_ConnectDgram call paths use this hack anymore.

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

index 5900b760bfcdd11ff5a7e910b01710b733effc40..3dc51c719638109eaeb1b42dcaa97e3c74f18989 100644 (file)
@@ -618,9 +618,6 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
     int             i_val, i_handle = -1;
     vlc_bool_t      b_unreach = VLC_FALSE;
 
-    if( i_port == 0 )
-        i_port = 1234; /* historical VLC thing */
-
     if( i_hlim < 1 )
         i_hlim = var_CreateGetInteger( p_this, "ttl" );