diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2005-11-13 03:12:14 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2005-11-13 03:12:14 +0000 |
commit | 90f9c440e8b7dd5b054451364f024eca2afb5728 (patch) | |
tree | 27315c3ec3bd94c7154fd5ccb73d9d76c5206795 /ffserver.c | |
parent | b51527d8506607e97b6cf7ba04a1921fe7f36881 (diff) | |
download | ffmpeg-90f9c440e8b7dd5b054451364f024eca2afb5728.tar.gz |
debug the launch commandline and new connections
Originally committed as revision 4695 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 4bb95442f6..c2b9097862 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1202,6 +1202,9 @@ static int http_parse_request(HTTPContext *c) return -1; pstrcpy(c->protocol, sizeof(c->protocol), protocol); + + if (ffserver_debug) + http_log("New connection: %s %s\n", cmd, url); /* find the filename and the optional info string in the request */ p = url; @@ -3870,6 +3873,15 @@ static int parse_ffconfig(const char *filename) (my_http_addr.sin_addr.s_addr == INADDR_ANY) ? "127.0.0.1" : inet_ntoa(my_http_addr.sin_addr), ntohs(my_http_addr.sin_port), feed->filename); + + if (ffserver_debug) + { + int j; + fprintf(stdout, "Launch commandline: "); + for (j = 0; j <= i; j++) + fprintf(stdout, "%s ", feed->child_argv[j]); + fprintf(stdout, "\n"); + } } } else if (!strcasecmp(cmd, "ReadOnlyFile")) { if (feed) { |