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
2014-04-07 11:57:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9107831b0e9887851c90aa847f31b0ae690a6ffd
9107831b
1 parent
f5c4f492
add config to read ingesters
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
21 行增加
和
0 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/app/srs_app_config.cpp
查看文件 @
9107831
...
...
@@ -1590,6 +1590,24 @@ string SrsConfig::get_engine_output(SrsConfDirective* engine)
return
conf
->
arg0
();
}
void
SrsConfig
::
get_ingesters
(
std
::
string
vhost
,
std
::
vector
<
SrsConfDirective
*>&
ingeters
)
{
SrsConfDirective
*
vhost_conf
=
get_vhost
(
vhost
);
if
(
!
vhost_conf
)
{
return
;
}
for
(
int
i
=
0
;
i
<
(
int
)
vhost_conf
->
directives
.
size
();
i
++
)
{
SrsConfDirective
*
conf
=
vhost_conf
->
directives
[
i
];
if
(
conf
->
name
==
"ingest"
)
{
ingeters
.
push_back
(
conf
);
}
}
return
;
}
string
SrsConfig
::
get_srs_log_file
()
{
srs_assert
(
root
);
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
9107831
...
...
@@ -184,6 +184,9 @@ public:
virtual
int
get_engine_achannels
(
SrsConfDirective
*
engine
);
virtual
void
get_engine_aparams
(
SrsConfDirective
*
engine
,
std
::
vector
<
std
::
string
>&
aparams
);
virtual
std
::
string
get_engine_output
(
SrsConfDirective
*
engine
);
// vhost ingest section
public:
virtual
void
get_ingesters
(
std
::
string
vhost
,
std
::
vector
<
SrsConfDirective
*>&
ingeters
);
// log section
public:
virtual
bool
get_srs_log_tank_file
();
...
...
请
注册
或
登录
后发表评论