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

For #913, refine the error mechanism

This commit is contained in:
winlin 2017-06-09 13:29:23 +08:00
parent bb200b5d2d
commit 93710c7489
11 changed files with 38 additions and 31 deletions

View file

@ -704,16 +704,17 @@ SrsHttpStreamServer::~SrsHttpStreamServer()
}
}
int SrsHttpStreamServer::initialize()
srs_error_t SrsHttpStreamServer::initialize()
{
int ret = ERROR_SUCCESS;
srs_error_t err = srs_success;
// remux rtmp to flv live streaming
if ((ret = initialize_flv_streaming()) != ERROR_SUCCESS) {
return ret;
return srs_error_new(ret, "http flv stream");
}
return ret;
return err;
}
// TODO: FIXME: rename for HTTP FLV mount.