ETIME -> ETIMEDOUT. Patch by Sam Gerstein <sgerstein bluefinlab com>.

Originally committed as revision 22785 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Sam Gerstein 2010-04-02 20:14:55 +00:00 committed by Ronald S. Bultje
parent 523429220b
commit f3c68c5b45

View 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);
}