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-30 10:17:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6ee49ee029cede4212e20c5e75d8f2be348c9195
6ee49ee0
1 parent
f02ac02a
bravo auto atc per stream. 0.9.84
显示空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
1 行增加
和
28 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/app/srs_app_source.cpp
trunk/src/core/srs_core.hpp
trunk/src/app/srs_app_config.cpp
查看文件 @
6ee49ee
...
...
@@ -2656,29 +2656,6 @@ string SrsConfig::get_vhost_http_dir(string vhost)
return
conf
->
arg0
();
}
void
SrsConfig
::
set_atc
(
std
::
string
vhost
,
bool
atc
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
return
;
}
// create if not exists
if
(
conf
->
get
(
"atc"
)
==
NULL
)
{
SrsConfDirective
*
o
=
new
SrsConfDirective
();
o
->
name
=
"atc"
;
conf
->
directives
.
push_back
(
o
);
}
// get the atc node
conf
=
conf
->
get
(
"atc"
);
srs_assert
(
conf
);
// refresh
conf
->
directives
.
clear
();
conf
->
args
.
push_back
((
atc
?
"true"
:
"false"
));
}
bool
srs_directive_equals
(
SrsConfDirective
*
a
,
SrsConfDirective
*
b
)
{
// both NULL, equal.
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
6ee49ee
...
...
@@ -269,9 +269,6 @@ public:
virtual
bool
get_vhost_http_enabled
(
std
::
string
vhost
);
virtual
std
::
string
get_vhost_http_mount
(
std
::
string
vhost
);
virtual
std
::
string
get_vhost_http_dir
(
std
::
string
vhost
);
// setter in memory
public:
virtual
void
set_atc
(
std
::
string
vhost
,
bool
atc
);
};
/**
...
...
trunk/src/app/srs_app_source.cpp
查看文件 @
6ee49ee
...
...
@@ -826,7 +826,6 @@ int SrsSource::on_meta_data(SrsMessage* msg, SrsOnMetaDataPacket* metadata)
if
((
prop
=
metadata
->
metadata
->
get_property
(
"bravo_atc"
))
!=
NULL
)
{
if
(
prop
->
is_string
()
&&
prop
->
to_str
()
==
"true"
)
{
atc
=
true
;
_srs_config
->
set_atc
(
_req
->
vhost
,
true
);
}
}
...
...
trunk/src/core/srs_core.hpp
查看文件 @
6ee49ee
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "8
3
"
#define VERSION_REVISION "8
4
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "srs"
...
...
请
注册
或
登录
后发表评论