1
0
Fork 0
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:
winlin 2017-02-19 21:48:32 +08:00
parent 711b58e0b2
commit ede1c34a25
6 changed files with 54 additions and 32 deletions

View file

@ -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;