1
0
Fork 0
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:
winlin 2017-01-19 12:38:55 +08:00
parent 6209945a07
commit 4cff49afd2
10 changed files with 1000 additions and 728 deletions

View file

@ -50,9 +50,9 @@ using namespace std;
// when error, forwarder sleep for a while and retry.
#define SRS_FORWARDER_CIMS (3000)
SrsForwarder::SrsForwarder(SrsSource* s)
SrsForwarder::SrsForwarder(SrsOriginHub* h)
{
source = s;
hub = h;
req = NULL;
sh_video = sh_audio = NULL;
@ -250,7 +250,7 @@ int SrsForwarder::cycle()
return ret;
}
if ((ret = source->on_forwarder_start(this)) != ERROR_SUCCESS) {
if ((ret = hub->on_forwarder_start(this)) != ERROR_SUCCESS) {
srs_error("callback the source to feed the sequence header failed. ret=%d", ret);
return ret;
}