mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
on_dvr: use publish param instead of play (#2550)
This commit is contained in:
parent
4e6a3321cd
commit
579b90dc1e
1 changed files with 2 additions and 1 deletions
|
@ -580,6 +580,7 @@ SrsDvrPlan::SrsDvrPlan()
|
|||
SrsDvrPlan::~SrsDvrPlan()
|
||||
{
|
||||
srs_freep(segment);
|
||||
srs_freep(req);
|
||||
}
|
||||
|
||||
srs_error_t SrsDvrPlan::initialize(SrsOriginHub* h, SrsDvrSegmenter* s, SrsRequest* r)
|
||||
|
@ -587,7 +588,7 @@ srs_error_t SrsDvrPlan::initialize(SrsOriginHub* h, SrsDvrSegmenter* s, SrsReque
|
|||
srs_error_t err = srs_success;
|
||||
|
||||
hub = h;
|
||||
req = r;
|
||||
req = r->copy();
|
||||
segment = s;
|
||||
|
||||
if ((err = segment->initialize(this, r)) != srs_success) {
|
||||
|
|
Loading…
Reference in a new issue