1
0
Fork 0
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:
winlin 2014-05-27 14:10:46 +08:00
parent 14f0a2e046
commit d74921e1ab
7 changed files with 36 additions and 23 deletions

View file

@ -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);