ETIME -> ETIMEDOUT. Patch by Sam Gerstein <sgerstein bluefinlab com>.
authorSam Gerstein <sgerstein@bluefinlab.com>
Fri, 2 Apr 2010 20:14:55 +0000 (20:14 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 2 Apr 2010 20:14:55 +0000 (20:14 +0000)
Originally committed as revision 22785 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index 8841ea8..dabfc61 100644 (file)
@@ -1692,7 +1692,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
             }
 #endif
         } else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
-            return AVERROR(ETIME);
+            return AVERROR(ETIMEDOUT);
         } else if (n < 0 && errno != EINTR)
             return AVERROR(errno);
     }