mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #319, move mw_latency to play.
This commit is contained in:
parent
4eb1874955
commit
06ae74dd3f
6 changed files with 140 additions and 146 deletions
|
@ -231,18 +231,13 @@ int SrsRtmpConn::on_reload_vhost_removed(string vhost)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int SrsRtmpConn::on_reload_vhost_mw(string vhost)
|
||||
int SrsRtmpConn::on_reload_vhost_play(string vhost)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
if (req->vhost != vhost) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
int sleep_ms = _srs_config->get_mw_sleep_ms(req->vhost);
|
||||
|
||||
// when mw_sleep changed, resize the socket send buffer.
|
||||
change_mw_sleep(sleep_ms);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue