[vlc-commits] mmstu: do not use SOCKS

Rémi Denis-Courmont git at videolan.org
Sun Nov 11 16:33:25 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Nov  9 23:20:31 2018 +0200| [6360265190a43e11ca8c07cbd1310ae98850bc25] | committer: Rémi Denis-Courmont

mmstu: do not use SOCKS

Be consistent in not using SOCKS across UDP and TCP sockets.

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

 modules/access/mms/mmstu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index d29dc827ad..86bbe6a487 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -495,7 +495,7 @@ static int MMSOpen( stream_t  *p_access, vlc_url_t *p_url, int  i_proto )
 
     /* *** Open a TCP connection with server *** */
     msg_Dbg( p_access, "waiting for connection..." );
-    p_sys->i_handle_tcp = net_ConnectTCP( p_access, p_url->psz_host, p_url->i_port );
+    p_sys->i_handle_tcp = net_Connect( p_access, p_url->psz_host, p_url->i_port, SOCK_STREAM, 0 );
     if( p_sys->i_handle_tcp < 0 )
     {
         msg_Err( p_access, "failed to open a connection (tcp)" );



More information about the vlc-commits mailing list