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

Originally committed as revision 22785 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Sam Gerstein 15 years ago committed by Ronald S. Bultje
parent 523429220b
commit f3c68c5b45
  1. 2
      libavformat/rtsp.c

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

Loading…
Cancel
Save