Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-11-02 11:46:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ec225b2108b4113f6f51639e8d183af4c3453348
ec225b21
1 parent
f4f76cd1
quit child process when fork failed.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
trunk/src/app/srs_app_ffmpeg.cpp
trunk/src/app/srs_app_ffmpeg.cpp
查看文件 @
ec225b2
...
...
@@ -432,7 +432,7 @@ int SrsFFMPEG::start()
if
((
log_fd
=
::
open
(
log_file
.
c_str
(),
flags
,
mode
))
<
0
)
{
ret
=
ERROR_ENCODER_OPEN
;
srs_error
(
"open encoder file %s failed. ret=%d"
,
log_file
.
c_str
(),
ret
);
return
ret
;
exit
(
ret
)
;
}
// log basic info
...
...
@@ -450,12 +450,12 @@ int SrsFFMPEG::start()
if
(
dup2
(
log_fd
,
STDOUT_FILENO
)
<
0
)
{
ret
=
ERROR_ENCODER_DUP2
;
srs_error
(
"dup2 encoder file failed. ret=%d"
,
ret
);
return
ret
;
exit
(
ret
)
;
}
if
(
dup2
(
log_fd
,
STDERR_FILENO
)
<
0
)
{
ret
=
ERROR_ENCODER_DUP2
;
srs_error
(
"dup2 encoder file failed. ret=%d"
,
ret
);
return
ret
;
exit
(
ret
)
;
}
// close log fd
...
...
请
注册
或
登录
后发表评论