projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8693e
)
rtsp: Return EOF if the TCP control channel is closed
author
Martin Storsjö
<martin@martin.st>
Wed, 25 Aug 2010 13:42:17 +0000
(13:42 +0000)
committer
Martin Storsjö
<martin@martin.st>
Wed, 25 Aug 2010 13:42:17 +0000
(13:42 +0000)
Originally committed as revision 24920 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index 36fe75391573ef53b017d207ad33f6d3550505e8..c9563319beb7bb9c15119111fbc2581ea83c1201 100644
(file)
--- a/
libavformat/rtsp.c
+++ b/
libavformat/rtsp.c
@@
-797,7
+797,7
@@
int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
dprintf(s, "ret=%d c=%02x [%c]\n", ret, ch, ch);
#endif
if (ret != 1)
- return
-1
;
+ return
AVERROR_EOF
;
if (ch == '\n')
break;
if (ch == '$') {
@@
-1719,8
+1719,8
@@
redo:
RTSPMessageHeader reply;
ret = ff_rtsp_read_reply(s, &reply, NULL, 1);
- if (ret
== -1
)
- return
-1
;
+ if (ret
< 0
)
+ return
ret
;
if (ret == 1) /* received '$' */
break;
/* XXX: parse message */