mirror of https://git.ffmpeg.org/ffmpeg.git
Cosmetics : Use dprintf instead of printf.
Patch by Peter Holik < $firstname @ $lastname . at > Originally committed as revision 19126 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2b01a52031
commit
a52dc730cf
|
@ -29,8 +29,6 @@
|
||||||
/* XXX: POST protocol is not completely implemented because ffmpeg uses
|
/* XXX: POST protocol is not completely implemented because ffmpeg uses
|
||||||
only a subset of it. */
|
only a subset of it. */
|
||||||
|
|
||||||
//#define DEBUG
|
|
||||||
|
|
||||||
/* used for protocol handling */
|
/* used for protocol handling */
|
||||||
#define BUFFER_SIZE 1024
|
#define BUFFER_SIZE 1024
|
||||||
#define URL_SIZE 4096
|
#define URL_SIZE 4096
|
||||||
|
@ -192,9 +190,9 @@ static int process_line(URLContext *h, char *line, int line_count,
|
||||||
while (isspace(*p))
|
while (isspace(*p))
|
||||||
p++;
|
p++;
|
||||||
s->http_code = strtol(p, NULL, 10);
|
s->http_code = strtol(p, NULL, 10);
|
||||||
#ifdef DEBUG
|
|
||||||
printf("http_code=%d\n", s->http_code);
|
dprintf(NULL, "http_code=%d\n", s->http_code);
|
||||||
#endif
|
|
||||||
/* error codes are 4xx and 5xx */
|
/* error codes are 4xx and 5xx */
|
||||||
if (s->http_code >= 400 && s->http_code < 600)
|
if (s->http_code >= 400 && s->http_code < 600)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -278,9 +276,9 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
|
||||||
for(;;) {
|
for(;;) {
|
||||||
if (http_get_line(s, line, sizeof(line)) < 0)
|
if (http_get_line(s, line, sizeof(line)) < 0)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
#ifdef DEBUG
|
|
||||||
printf("header='%s'\n", line);
|
dprintf(NULL, "header='%s'\n", line);
|
||||||
#endif
|
|
||||||
err = process_line(h, line, s->line_count, new_location);
|
err = process_line(h, line, s->line_count, new_location);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in New Issue