Commit 056cf5ed authored by alex's avatar alex

handle http error codes

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8272 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25e99299
......@@ -169,6 +169,9 @@ static int process_line(URLContext *h, char *line, int line_count,
#ifdef DEBUG
printf("http_code=%d\n", s->http_code);
#endif
/* error codes are 4xx and 5xx */
if (s->http_code >= 400 && s->http_code < 600)
return -1;
} else {
while (*p != '\0' && *p != ':')
p++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment