1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #319, move time_jitter and mix_correct to play

This commit is contained in:
winlin 2015-08-29 23:18:25 +08:00
parent 738642073e
commit d6b0aa3a5b
11 changed files with 171 additions and 101 deletions

View file

@ -1121,7 +1121,7 @@ int SrsSource::on_reload_vhost_queue_length(string vhost)
return ret;
}
int SrsSource::on_reload_vhost_time_jitter(string vhost)
int SrsSource::on_reload_vhost_play(string vhost)
{
int ret = ERROR_SUCCESS;
@ -1129,19 +1129,10 @@ int SrsSource::on_reload_vhost_time_jitter(string vhost)
return ret;
}
// time_jitter
jitter_algorithm = (SrsRtmpJitterAlgorithm)_srs_config->get_time_jitter(_req->vhost);
return ret;
}
int SrsSource::on_reload_vhost_mix_correct(string vhost)
{
int ret = ERROR_SUCCESS;
if (_req->vhost != vhost) {
return ret;
}
// mix_correct
bool v = _srs_config->get_mix_correct(_req->vhost);
// when changed, clear the mix queue.