Commit 1ce44df0 authored by stefano's avatar stefano

Cosmetics: s/stats/status/ in ffserver.c.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13809 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c777be05
...@@ -257,7 +257,7 @@ static void close_connection(HTTPContext *c); ...@@ -257,7 +257,7 @@ static void close_connection(HTTPContext *c);
static int handle_connection(HTTPContext *c); static int handle_connection(HTTPContext *c);
static int http_parse_request(HTTPContext *c); static int http_parse_request(HTTPContext *c);
static int http_send_data(HTTPContext *c); static int http_send_data(HTTPContext *c);
static void compute_stats(HTTPContext *c); static void compute_status(HTTPContext *c);
static int open_input_stream(HTTPContext *c, const char *info); static int open_input_stream(HTTPContext *c, const char *info);
static int http_start_receive_data(HTTPContext *c); static int http_start_receive_data(HTTPContext *c);
static int http_receive_data(HTTPContext *c); static int http_receive_data(HTTPContext *c);
...@@ -1522,7 +1522,7 @@ static int http_parse_request(HTTPContext *c) ...@@ -1522,7 +1522,7 @@ static int http_parse_request(HTTPContext *c)
#endif #endif
if (c->stream->stream_type == STREAM_TYPE_STATUS) if (c->stream->stream_type == STREAM_TYPE_STATUS)
goto send_stats; goto send_status;
/* open input stream */ /* open input stream */
if (open_input_stream(c, info) < 0) { if (open_input_stream(c, info) < 0) {
...@@ -1571,8 +1571,8 @@ static int http_parse_request(HTTPContext *c) ...@@ -1571,8 +1571,8 @@ static int http_parse_request(HTTPContext *c)
c->buffer_end = q; c->buffer_end = q;
c->state = HTTPSTATE_SEND_HEADER; c->state = HTTPSTATE_SEND_HEADER;
return 0; return 0;
send_stats: send_status:
compute_stats(c); compute_status(c);
c->http_error = 200; /* horrible : we use this value to avoid c->http_error = 200; /* horrible : we use this value to avoid
going to the send data state */ going to the send data state */
c->state = HTTPSTATE_SEND_HEADER; c->state = HTTPSTATE_SEND_HEADER;
...@@ -1589,7 +1589,7 @@ static void fmt_bytecount(ByteIOContext *pb, int64_t count) ...@@ -1589,7 +1589,7 @@ static void fmt_bytecount(ByteIOContext *pb, int64_t count)
url_fprintf(pb, "%"PRId64"%c", count, *s); url_fprintf(pb, "%"PRId64"%c", count, *s);
} }
static void compute_stats(HTTPContext *c) static void compute_status(HTTPContext *c)
{ {
HTTPContext *c1; HTTPContext *c1;
FFStream *stream; FFStream *stream;
......
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