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-08-25 22:59:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cdde293785709dc7ed51b81cd972ab7d3a02331e
cdde2937
1 parent
53f4ce36
add todo for reload the source components.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
0 行删除
trunk/src/app/srs_app_source.cpp
trunk/src/app/srs_app_source.cpp
查看文件 @
cdde293
...
...
@@ -1160,6 +1160,8 @@ int SrsSource::on_reload_vhost_forward(string vhost)
if
(
_req
->
vhost
!=
vhost
)
{
return
ret
;
}
// TODO: FIXME: maybe should ignore when publish already stopped?
// forwarders
destroy_forwarders
();
...
...
@@ -1181,6 +1183,8 @@ int SrsSource::on_reload_vhost_hls(string vhost)
return
ret
;
}
// TODO: FIXME: maybe should ignore when publish already stopped?
#ifdef SRS_AUTO_HLS
hls
->
on_unpublish
();
if
((
ret
=
hls
->
on_publish
(
_req
))
!=
ERROR_SUCCESS
)
{
...
...
@@ -1200,6 +1204,8 @@ int SrsSource::on_reload_vhost_hds(string vhost)
if
(
_req
->
vhost
!=
vhost
)
{
return
ret
;
}
// TODO: FIXME: maybe should ignore when publish already stopped?
#ifdef SRS_AUTO_HDS
hds
->
on_unpublish
();
...
...
@@ -1221,6 +1227,8 @@ int SrsSource::on_reload_vhost_dvr(string vhost)
return
ret
;
}
// TODO: FIXME: maybe should ignore when publish already stopped?
#ifdef SRS_AUTO_DVR
// cleanup dvr
dvr
->
on_unpublish
();
...
...
@@ -1250,6 +1258,8 @@ int SrsSource::on_reload_vhost_transcode(string vhost)
return
ret
;
}
// TODO: FIXME: maybe should ignore when publish already stopped?
#ifdef SRS_AUTO_TRANSCODE
encoder
->
on_unpublish
();
if
((
ret
=
encoder
->
on_publish
(
_req
))
!=
ERROR_SUCCESS
)
{
...
...
@@ -1270,6 +1280,8 @@ int SrsSource::on_reload_vhost_exec(string vhost)
return
ret
;
}
// TODO: FIXME: maybe should ignore when publish already stopped?
ng_exec
->
on_unpublish
();
if
((
ret
=
ng_exec
->
on_publish
(
_req
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"start exec failed. ret=%d"
,
ret
);
...
...
请
注册
或
登录
后发表评论