Revision f10d55ed ffserver.c

View differences:

ffserver.c
4480 4480
        exit(1);
4481 4481
    }
4482 4482

  
4483
    /* open log file if needed */
4484
    if (logfilename[0] != '\0') {
4485
        if (!strcmp(logfilename, "-"))
4486
            logfile = stderr;
4487
        else
4488
            logfile = fopen(logfilename, "a");
4489
        av_log_set_callback(http_av_log);
4490
    }
4491

  
4483 4492
    build_file_streams();
4484 4493

  
4485 4494
    build_feed_streams();
......
4514 4523
    /* signal init */
4515 4524
    signal(SIGPIPE, SIG_IGN);
4516 4525

  
4517
    /* open log file if needed */
4518
    if (logfilename[0] != '\0') {
4519
        if (!strcmp(logfilename, "-"))
4520
            logfile = stderr;
4521
        else
4522
            logfile = fopen(logfilename, "a");
4523
        av_log_set_callback(http_av_log);
4524
    }
4525

  
4526 4526
    if (ffserver_daemon)
4527 4527
        chdir("/");
4528 4528

  

Also available in: Unified diff