mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #742, refine source, meta and origin hub. 3.0.16
This commit is contained in:
parent
6209945a07
commit
4cff49afd2
10 changed files with 1000 additions and 728 deletions
|
@ -970,7 +970,7 @@ int SrsDvrSegmentPlan::update_duration(SrsSharedPtrMessage* msg)
|
|||
|
||||
SrsDvr::SrsDvr()
|
||||
{
|
||||
source = NULL;
|
||||
hub = NULL;
|
||||
plan = NULL;
|
||||
req = NULL;
|
||||
actived = false;
|
||||
|
@ -985,12 +985,12 @@ SrsDvr::~SrsDvr()
|
|||
srs_freep(plan);
|
||||
}
|
||||
|
||||
int SrsDvr::initialize(SrsSource* s, SrsRequest* r)
|
||||
int SrsDvr::initialize(SrsOriginHub* h, SrsRequest* r)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
req = r;
|
||||
source = s;
|
||||
hub = h;
|
||||
|
||||
SrsConfDirective* conf = _srs_config->get_dvr_apply(r->vhost);
|
||||
actived = srs_config_apply_filter(conf, r);
|
||||
|
@ -1018,7 +1018,7 @@ int SrsDvr::on_publish(bool fetch_sequence_header)
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (fetch_sequence_header && (ret = source->on_dvr_request_sh()) != ERROR_SUCCESS) {
|
||||
if (fetch_sequence_header && (ret = hub->on_dvr_request_sh()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue