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:
parent
bb200b5d2d
commit
93710c7489
11 changed files with 38 additions and 31 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue