summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2010-07-12 10:17:20 +0000
committerLuca Barbato <lu_zero@gentoo.org>2010-07-12 10:17:20 +0000
commitbf55cf19ca46fdc70444359558243813db40418f (patch)
tree36766af13c6627012b77570e521033eee4b51ede /libavformat/rtsp.c
parentb12b16c5d35adaba0979a7c2fa76b88e48f5f839 (diff)
Report when a method gets an error status code
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
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 37d3be9217..9316f3cea9 100644
--- 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;
}