aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-11-21 10:26:11 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-11-21 10:26:11 +0000
commita960a1e041fd2647b806f744ca0e409c30bd8d32 (patch)
tree95a1465173d2ce0054196ee4e1d15c656b4a5829 /libavformat
parent899681cd1dbf4cd7c3b86af23bca25e20a54f4d0 (diff)
downloadffmpeg-a960a1e041fd2647b806f744ca0e409c30bd8d32.tar.gz
Make av_read_frame with rtsp client return EINTR on interrupt
patch from elupusateccedotse Originally committed as revision 11072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index d71479c358..4fec5b4094 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1130,7 +1130,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
for(;;) {
if (url_interrupt_cb())
- return -1;
+ return AVERROR(EINTR);
FD_ZERO(&rfds);
fd_max = -1;
for(i = 0; i < rt->nb_rtsp_streams; i++) {