[vlc-devel] commit: Forward port of 'Telnet: fix win32 work'. (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Dec 19 01:31:11 CET 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec 19 01:30:57 2008 +0100| [4b77d0a9fecac64ebab49e664f1e5cac2c90d07b] | committer: Jean-Baptiste Kempf 

Forward port of 'Telnet: fix win32 work'.

Should work, but not tested yet.

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

 modules/control/telnet.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/control/telnet.c b/modules/control/telnet.c
index 6cf4b6d..7a693db 100644
--- a/modules/control/telnet.c
+++ b/modules/control/telnet.c
@@ -373,6 +373,12 @@ static void Run( intf_thread_t *p_intf )
                                    cl->i_mode + 2 );
                 }
 
+#ifdef WIN32
+                if( i_recv <= 0 && WSAGetLastError() == WSAEWOULDBLOCK )
+                {
+                    errno = EAGAIN;
+                }
+#endif
                 if (i_recv <= 0 && ( end || errno != EAGAIN ) )
                     goto drop;
             }




More information about the vlc-devel mailing list