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

For #913, coroutine support complex error.

This commit is contained in:
winlin 2017-06-11 18:44:20 +08:00
parent 9ae54850bf
commit 9db2a04c3b
38 changed files with 620 additions and 414 deletions

View file

@ -257,13 +257,13 @@ int SrsHlsMuxer::deviation()
srs_error_t SrsHlsMuxer::initialize()
{
int ret = ERROR_SUCCESS;
srs_error_t err = srs_success;
if ((ret = async->start()) != ERROR_SUCCESS) {
return srs_error_new(ret, "async start");
if ((err = async->start()) != srs_success) {
return srs_error_wrap(err, "async start");
}
return srs_success;
return err;
}
int SrsHlsMuxer::update_config(SrsRequest* r, string entry_prefix,