[vlc-commits] lua: use net_ConnectTCP() where applicable

Rémi Denis-Courmont git at videolan.org
Sun Mar 12 18:29:32 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 12 19:26:57 2017 +0200| [5ed80c35421fef6fb900c48cb496720a37fb5641] | committer: Rémi Denis-Courmont

lua: use net_ConnectTCP() where applicable

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

 modules/lua/libs/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/libs/net.c b/modules/lua/libs/net.c
index 5162096..5e10ee4 100644
--- a/modules/lua/libs/net.c
+++ b/modules/lua/libs/net.c
@@ -252,7 +252,7 @@ static int vlclua_net_connect_tcp( lua_State *L )
     vlc_object_t *p_this = vlclua_get_this( L );
     const char *psz_host = luaL_checkstring( L, 1 );
     int i_port = luaL_checkint( L, 2 );
-    int i_fd = net_Connect( p_this, psz_host, i_port, SOCK_STREAM, IPPROTO_TCP );
+    int i_fd = net_ConnectTCP( p_this, psz_host, i_port );
     lua_pushinteger( L, vlclua_fd_map_safe( L, i_fd ) );
     return 1;
 }



More information about the vlc-commits mailing list