You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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
This commit is contained in:
@@ -959,6 +959,13 @@ retry:
|
|||||||
rt->auth_state.auth_type != HTTP_AUTH_NONE)
|
rt->auth_state.auth_type != HTTP_AUTH_NONE)
|
||||||
goto retry;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user