1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Revert "Fix #2142, Async release bridger when unpublish. 4.0.60"

This reverts commit 06adb9dc42.
This commit is contained in:
winlin 2021-01-15 13:30:52 +08:00
parent 06adb9dc42
commit ed32965aa4
6 changed files with 5 additions and 60 deletions

View file

@ -51,7 +51,6 @@ using namespace std;
#include <srs_app_dash.hpp>
#include <srs_protocol_format.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_app_rtc_server.hpp>
#define CONST_MAX_JITTER_MS 250
#define CONST_MAX_JITTER_MS_NEG -250
@ -1882,13 +1881,10 @@ SrsSource::SrsSource()
_srs_config->subscribe(this);
atc = false;
_srs_rtc_manager->subscribe(this);
}
SrsSource::~SrsSource()
{
_srs_rtc_manager->unsubscribe(this);
_srs_config->unsubscribe(this);
// never free the consumers,
@ -1984,18 +1980,6 @@ void SrsSource::bridge_to(ISrsSourceBridger* v)
bridger = v;
}
void SrsSource::on_before_dispose(ISrsResource* c)
{
ISrsSourceBridger* pb = dynamic_cast<ISrsSourceBridger*>(c);
if (bridger == pb) {
bridge_to(NULL);
}
}
void SrsSource::on_disposing(ISrsResource* c)
{
}
srs_error_t SrsSource::on_reload_vhost_play(string vhost)
{
srs_error_t err = srs_success;