[FFmpeg-cvslog] r24212 - trunk/libavformat/rtsp.c
lu_zero
subversion
Mon Jul 12 12:17:20 CEST 2010
Author: lu_zero
Date: Mon Jul 12 12:17:20 2010
New Revision: 24212
Log:
Report when a method gets an error status code
That makes easier understand what went wrong.
In debug mode the whole reply gets printed.
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c Mon Jul 12 11:51:50 2010 (r24211)
+++ trunk/libavformat/rtsp.c Mon Jul 12 12:17:20 2010 (r24212)
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list