mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #89, config to /dev/null to disable ffmpeg log. 0.9.117
This commit is contained in:
parent
14f0a2e046
commit
d74921e1ab
7 changed files with 36 additions and 23 deletions
|
@ -2410,6 +2410,12 @@ string SrsConfig::get_log_file()
|
|||
return conf->arg0();
|
||||
}
|
||||
|
||||
bool SrsConfig::get_ffmpeg_log_enabled()
|
||||
{
|
||||
string log = get_ffmpeg_log_dir();
|
||||
return log != "/dev/null";
|
||||
}
|
||||
|
||||
string SrsConfig::get_ffmpeg_log_dir()
|
||||
{
|
||||
srs_assert(root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue