OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12b16c
)
Report when a method gets an error status code
author
Luca Barbato
<lu_zero@gentoo.org>
Mon, 12 Jul 2010 10:17:20 +0000
(10:17 +0000)
committer
Luca Barbato
<lu_zero@gentoo.org>
Mon, 12 Jul 2010 10:17:20 +0000
(10:17 +0000)
That makes easier understand what went wrong.
In debug mode the whole reply gets printed.
Originally committed as revision 24212 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c
patch
|
blob
|
history
diff --git
a/libavformat/rtsp.c
b/libavformat/rtsp.c
index
37d3be9
..
9316f3c
100644
(file)
--- a/
libavformat/rtsp.c
+++ b/
libavformat/rtsp.c
@@
-959,6
+959,13
@@
retry:
rt->auth_state.auth_type != HTTP_AUTH_NONE)
goto retry;
+ if (reply->status_code > 400){
+ av_log(s, AV_LOG_ERROR, "method %s failed, %d\n",
+ method,
+ reply->status_code);
+ av_log(s, AV_LOG_DEBUG, "%s\n", rt->last_reply);
+ }
+
return 0;
}