mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #474, refine the hls publish, donot fetch from source when publish
This commit is contained in:
parent
44bcb4045f
commit
83a9ff9f5d
3 changed files with 18 additions and 13 deletions
|
@ -1180,7 +1180,7 @@ int SrsSource::on_reload_vhost_hls(string vhost)
|
|||
|
||||
#ifdef SRS_AUTO_HLS
|
||||
hls->on_unpublish();
|
||||
if ((ret = hls->on_publish(_req)) != ERROR_SUCCESS) {
|
||||
if ((ret = hls->on_publish(_req, true)) != ERROR_SUCCESS) {
|
||||
srs_error("hls publish failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
@ -2039,7 +2039,7 @@ int SrsSource::on_publish()
|
|||
|
||||
// TODO: FIXME: use initialize to set req.
|
||||
#ifdef SRS_AUTO_HLS
|
||||
if ((ret = hls->on_publish(_req)) != ERROR_SUCCESS) {
|
||||
if ((ret = hls->on_publish(_req, false)) != ERROR_SUCCESS) {
|
||||
srs_error("start hls failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue