mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
add todo for reload the source components.
This commit is contained in:
parent
53f4ce3604
commit
cdde293785
1 changed files with 12 additions and 0 deletions
|
@ -1160,6 +1160,8 @@ int SrsSource::on_reload_vhost_forward(string vhost)
|
||||||
if (_req->vhost != vhost) {
|
if (_req->vhost != vhost) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: FIXME: maybe should ignore when publish already stopped?
|
||||||
|
|
||||||
// forwarders
|
// forwarders
|
||||||
destroy_forwarders();
|
destroy_forwarders();
|
||||||
|
@ -1181,6 +1183,8 @@ int SrsSource::on_reload_vhost_hls(string vhost)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: FIXME: maybe should ignore when publish already stopped?
|
||||||
|
|
||||||
#ifdef SRS_AUTO_HLS
|
#ifdef SRS_AUTO_HLS
|
||||||
hls->on_unpublish();
|
hls->on_unpublish();
|
||||||
if ((ret = hls->on_publish(_req)) != ERROR_SUCCESS) {
|
if ((ret = hls->on_publish(_req)) != ERROR_SUCCESS) {
|
||||||
|
@ -1200,6 +1204,8 @@ int SrsSource::on_reload_vhost_hds(string vhost)
|
||||||
if (_req->vhost != vhost) {
|
if (_req->vhost != vhost) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: FIXME: maybe should ignore when publish already stopped?
|
||||||
|
|
||||||
#ifdef SRS_AUTO_HDS
|
#ifdef SRS_AUTO_HDS
|
||||||
hds->on_unpublish();
|
hds->on_unpublish();
|
||||||
|
@ -1221,6 +1227,8 @@ int SrsSource::on_reload_vhost_dvr(string vhost)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: FIXME: maybe should ignore when publish already stopped?
|
||||||
|
|
||||||
#ifdef SRS_AUTO_DVR
|
#ifdef SRS_AUTO_DVR
|
||||||
// cleanup dvr
|
// cleanup dvr
|
||||||
dvr->on_unpublish();
|
dvr->on_unpublish();
|
||||||
|
@ -1250,6 +1258,8 @@ int SrsSource::on_reload_vhost_transcode(string vhost)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: FIXME: maybe should ignore when publish already stopped?
|
||||||
|
|
||||||
#ifdef SRS_AUTO_TRANSCODE
|
#ifdef SRS_AUTO_TRANSCODE
|
||||||
encoder->on_unpublish();
|
encoder->on_unpublish();
|
||||||
if ((ret = encoder->on_publish(_req)) != ERROR_SUCCESS) {
|
if ((ret = encoder->on_publish(_req)) != ERROR_SUCCESS) {
|
||||||
|
@ -1270,6 +1280,8 @@ int SrsSource::on_reload_vhost_exec(string vhost)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: FIXME: maybe should ignore when publish already stopped?
|
||||||
|
|
||||||
ng_exec->on_unpublish();
|
ng_exec->on_unpublish();
|
||||||
if ((ret = ng_exec->on_publish(_req)) != ERROR_SUCCESS) {
|
if ((ret = ng_exec->on_publish(_req)) != ERROR_SUCCESS) {
|
||||||
srs_error("start exec failed. ret=%d", ret);
|
srs_error("start exec failed. ret=%d", ret);
|
||||||
|
|
Loading…
Reference in a new issue