aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-25 18:51:54 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-25 18:51:54 +0000
commitf10d55ed88a1a2c96b10b80f969f8f9e5f77ffe3 (patch)
tree37a8b42fcd49b565eed6ebdb8847fc5620c7654c /ffserver.c
parentf0754ad822317c63cf32ddf2d12740574d6b30ca (diff)
downloadffmpeg-f10d55ed88a1a2c96b10b80f969f8f9e5f77ffe3.tar.gz
move logfile setup right after config parsing
Originally committed as revision 13974 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ffserver.c b/ffserver.c
index 59a0b99b32..c449a7f2fd 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -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("/");