[Ffmpeg-cvslog] CVS: ffmpeg ffserver.c,1.98,1.99

Alex Beregszaszi alex
Sun Nov 13 04:12:16 CET 2005


Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv10045

Modified Files:
	ffserver.c 
Log Message:
debug the launch commandline and new connections

Index: ffserver.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/ffserver.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- ffserver.c	13 Nov 2005 01:45:12 -0000	1.98
+++ ffserver.c	13 Nov 2005 03:12:14 -0000	1.99
@@ -1202,6 +1202,9 @@
         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 @@
             	    (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) {





More information about the ffmpeg-cvslog mailing list