[FFmpeg-cvslog] r13846 - trunk/ffserver.c

bcoudurier subversion
Sat Jun 21 05:34:18 CEST 2008


Author: bcoudurier
Date: Sat Jun 21 05:34:18 2008
New Revision: 13846

Log:
always use stdout to log when running in debug mode

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat Jun 21 05:34:18 2008
@@ -3791,7 +3791,8 @@ static int parse_ffconfig(const char *fi
             } else
                 max_bandwidth = llval;
         } else if (!strcasecmp(cmd, "CustomLog")) {
-            get_arg(logfilename, sizeof(logfilename), &p);
+            if (!ffserver_debug)
+                get_arg(logfilename, sizeof(logfilename), &p);
         } else if (!strcasecmp(cmd, "<Feed")) {
             /*********************************************/
             /* Feed related options */
@@ -4392,6 +4393,7 @@ static void opt_debug()
 {
     ffserver_debug = 1;
     ffserver_daemon = 0;
+    logfilename[0] = '-';
 }
 
 static void opt_show_help(void)




More information about the ffmpeg-cvslog mailing list