diff rtsp.c @ 5954:1c93ef22cea6 libavformat

Fix compile error on mingw where ETIMEDOUT is missing (because it's a WSA error). This patch also changes FF_NETERROR() to be an AVERROR(), i.e. it is always negative, whereas it was previously positive.
author rbultje
date Thu, 15 Apr 2010 18:27:27 +0000
parents 2dbc910a7002
children 780410aa35b7
line wrap: on
line diff
--- a/rtsp.c	Thu Apr 15 13:30:12 2010 +0000
+++ b/rtsp.c	Thu Apr 15 18:27:27 2010 +0000
@@ -1692,7 +1692,7 @@
             }
 #endif
         } else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
-            return AVERROR(ETIMEDOUT);
+            return FF_NETERROR(ETIMEDOUT);
         } else if (n < 0 && errno != EINTR)
             return AVERROR(errno);
     }