mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use hls->initialize to set req of hls (#1077)
This commit is contained in:
parent
1721e4ea4b
commit
fd016ed91a
3 changed files with 6 additions and 7 deletions
|
|
@ -1080,7 +1080,7 @@ int SrsSource::initialize(SrsRequest* r, ISrsSourceHandler* h)
|
|||
atc = _srs_config->get_atc(_req->vhost);
|
||||
|
||||
#ifdef SRS_AUTO_HLS
|
||||
if ((ret = hls->initialize(this)) != ERROR_SUCCESS) {
|
||||
if ((ret = hls->initialize(this, _req)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
|
@ -2175,7 +2175,6 @@ int SrsSource::on_publish()
|
|||
}
|
||||
#endif
|
||||
|
||||
// TODO: FIXME: use initialize to set req.
|
||||
#ifdef SRS_AUTO_HLS
|
||||
if ((ret = hls->on_publish(_req, false)) != ERROR_SUCCESS) {
|
||||
srs_error("start hls failed. ret=%d", ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue