mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SmartPtr: Support shared ptr for live source. v6.0.129 (#4089)
Detail change log: 1. [Simple,Refactor] Remove member fields of http entry, etc.e34b3d3aa4
2. [Ignore] Rename source to live_source.846f95ec96
3. [Ignore] Use directly ptr in consumer.d38af021ad
4. [Complex, Important] Use shared ptr for live source.88f922413a
The object relationship:  --- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
908c2f2a30
commit
e7069788e9
30 changed files with 256 additions and 235 deletions
|
@ -1302,28 +1302,28 @@ srs_error_t SrsServer::on_reload_listen()
|
|||
return err;
|
||||
}
|
||||
|
||||
srs_error_t SrsServer::on_publish(SrsLiveSource* s, SrsRequest* r)
|
||||
srs_error_t SrsServer::on_publish(SrsRequest* r)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
if ((err = http_server->http_mount(s, r)) != srs_success) {
|
||||
if ((err = http_server->http_mount(r)) != srs_success) {
|
||||
return srs_error_wrap(err, "http mount");
|
||||
}
|
||||
|
||||
SrsCoWorkers* coworkers = SrsCoWorkers::instance();
|
||||
if ((err = coworkers->on_publish(s, r)) != srs_success) {
|
||||
if ((err = coworkers->on_publish(r)) != srs_success) {
|
||||
return srs_error_wrap(err, "coworkers");
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
void SrsServer::on_unpublish(SrsLiveSource* s, SrsRequest* r)
|
||||
void SrsServer::on_unpublish(SrsRequest* r)
|
||||
{
|
||||
http_server->http_unmount(s, r);
|
||||
http_server->http_unmount(r);
|
||||
|
||||
SrsCoWorkers* coworkers = SrsCoWorkers::instance();
|
||||
coworkers->on_unpublish(s, r);
|
||||
coworkers->on_unpublish(r);
|
||||
}
|
||||
|
||||
SrsServerAdapter::SrsServerAdapter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue