]> git.sesse.net Git - vlc/commitdiff
- io.c: meaningful error message on win32 when input is dying
authorDamien Fouilleul <damienf@videolan.org>
Wed, 21 Feb 2007 22:39:07 +0000 (22:39 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 21 Feb 2007 22:39:07 +0000 (22:39 +0000)
src/network/io.c

index 045bf21818492eb2f9a37c32c433d250febb79c0..d22f59537366b91ce8a95b8c5859319e1e4e05cd 100644 (file)
@@ -299,7 +299,11 @@ net_ReadInner( vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
         int delay_ms = dontwait ? 0 : 500;
         if (p_this->b_die)
         {
+#if defined(WIN32) || defined(UNDER_CE)
+            WSASetLastError(WSAEINTR);
+#else
             errno = EINTR;
+#endif
             goto error;
         }