mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #299, refine the signature of api for hls/dash
This commit is contained in:
parent
711b58e0b2
commit
ede1c34a25
6 changed files with 54 additions and 32 deletions
|
@ -1056,7 +1056,6 @@ SrsHls::SrsHls()
|
|||
{
|
||||
req = NULL;
|
||||
hub = NULL;
|
||||
format = NULL;
|
||||
|
||||
enabled = false;
|
||||
disposable = false;
|
||||
|
@ -1119,13 +1118,12 @@ int SrsHls::cycle()
|
|||
return ret;
|
||||
}
|
||||
|
||||
int SrsHls::initialize(SrsOriginHub* h, SrsFormat* f, SrsRequest* r)
|
||||
int SrsHls::initialize(SrsOriginHub* h, SrsRequest* r)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
hub = h;
|
||||
req = r;
|
||||
format = f;
|
||||
|
||||
if ((ret = controller->initialize()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue