summaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-04-15 18:27:27 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-04-15 18:27:27 +0000
commit4aecee7fc34d5eb3dccf2b8ff070cd1029a14d96 (patch)
tree5a0fac93f5de93e591335f9c4892eeafb5933fa9 /libavformat/rtsp.c
parente58c05bb3c8b7bd3b93d264facbf290aeae4c483 (diff)
downloadffmpeg-streaming-4aecee7fc34d5eb3dccf2b8ff070cd1029a14d96.zip
ffmpeg-streaming-4aecee7fc34d5eb3dccf2b8ff070cd1029a14d96.tar.gz
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. Originally committed as revision 22887 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 643e4d5..16397e4 100644
--- a/libavformat/rtsp.c
+++ b/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(ETIMEDOUT);
+ return FF_NETERROR(ETIMEDOUT);
} else if (n < 0 && errno != EINTR)
return AVERROR(errno);
}
OpenPOWER on IntegriCloud