]> git.sesse.net Git - vlc/blobdiff - src/network/udp.c
remove old headers in java bindings
[vlc] / src / network / udp.c
index c55898066b602cd6bbfbb9d535c3746251190902..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" );
 
@@ -833,12 +830,6 @@ int __net_OpenDgram( vlc_object_t *obj, const char *psz_bind, int i_bind,
  */
 int net_SetCSCov (int fd, int sendcov, int recvcov)
 {
-#if !defined( UDPLITE_RECV_CSCOV ) && !defined( DCCP_SOCKOPT_SEND_CSCOV )
-    VLC_UNUSED(sendcov);
-    VLC_UNUSED(recvcov);
-    return VLC_EGENERIC;
-#endif
-
     int type;
 
     if (getsockopt (fd, SOL_SOCKET, SO_TYPE,
@@ -888,6 +879,10 @@ int net_SetCSCov (int fd, int sendcov, int recvcov)
             return VLC_SUCCESS;
 #endif
     }
+#if !defined( UDPLITE_RECV_CSCOV ) && !defined( DCCP_SOCKOPT_SEND_CSCOV )
+    VLC_UNUSED(sendcov);
+    VLC_UNUSED(recvcov);
+#endif
 
     return VLC_EGENERIC;
 }