Commit a07be7e1 authored by bcoudurier's avatar bcoudurier

move logfile setup right after config parsing

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13974 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 27214cb2
......@@ -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("/");
......
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