mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, rename the sync call to common class.
This commit is contained in:
parent
0bb90145ba
commit
2f0ef87d6d
6 changed files with 43 additions and 41 deletions
|
@ -548,7 +548,7 @@ SrsDvrPlan::SrsDvrPlan()
|
|||
|
||||
dvr_enabled = false;
|
||||
segment = new SrsFlvSegment(this);
|
||||
async = new SrsDvrAsyncCallThread();
|
||||
async = new SrsAsyncCallWorker();
|
||||
}
|
||||
|
||||
SrsDvrPlan::~SrsDvrPlan()
|
||||
|
@ -629,7 +629,7 @@ int SrsDvrPlan::on_reap_segment()
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
if ((ret = async->call(new SrsDvrAsyncCallOnDvr(req, segment->get_path()))) != ERROR_SUCCESS) {
|
||||
if ((ret = async->execute(new SrsDvrAsyncCallOnDvr(req, segment->get_path()))) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue