[FFmpeg-cvslog] r13974 - trunk/ffserver.c
bcoudurier
subversion
Wed Jun 25 20:51:54 CEST 2008
Author: bcoudurier
Date: Wed Jun 25 20:51:54 2008
New Revision: 13974
Log:
move logfile setup right after config parsing
Modified:
trunk/ffserver.c
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c (original)
+++ trunk/ffserver.c Wed Jun 25 20:51:54 2008
@@ -4480,6 +4480,15 @@ int main(int argc, char **argv)
exit(1);
}
+ /* open log file if needed */
+ if (logfilename[0] != '\0') {
+ if (!strcmp(logfilename, "-"))
+ logfile = stderr;
+ else
+ logfile = fopen(logfilename, "a");
+ av_log_set_callback(http_av_log);
+ }
+
build_file_streams();
build_feed_streams();
@@ -4514,15 +4523,6 @@ int main(int argc, char **argv)
/* signal init */
signal(SIGPIPE, SIG_IGN);
- /* open log file if needed */
- if (logfilename[0] != '\0') {
- if (!strcmp(logfilename, "-"))
- logfile = stderr;
- else
- logfile = fopen(logfilename, "a");
- av_log_set_callback(http_av_log);
- }
-
if (ffserver_daemon)
chdir("/");
More information about the ffmpeg-cvslog
mailing list