[vlc-devel] commit: Remove the 1234 default UDP port hack ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Mar 4 19:18:49 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue Mar  4 20:18:09 2008 +0200| [7187a7e9ccd41bf977efc45f7eae51c73c0d32ab]

Remove the 1234 default UDP port hack

None of the three net_ConnectDgram call paths use this hack anymore.

Signed-off-by: Rémi Denis-Courmont <rem at videolan.org>

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

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

diff --git a/src/network/udp.c b/src/network/udp.c
index 5900b76..3dc51c7 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -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" );
 




More information about the vlc-devel mailing list