1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00

RTC: Remove dead code

This commit is contained in:
winlin 2020-08-28 20:09:09 +08:00
parent f8ad90c68d
commit 34d119f7b4

View file

@ -901,16 +901,10 @@ srs_error_t SrsRtcPublishStream::start()
return srs_error_wrap(err, "start timer"); return srs_error_wrap(err, "start timer");
} }
if ((err = _srs_rtc_sources->fetch_or_create(req, &source)) != srs_success) {
return srs_error_wrap(err, "create source");
}
if ((err = source->on_publish()) != srs_success) { if ((err = source->on_publish()) != srs_success) {
return srs_error_wrap(err, "on publish"); return srs_error_wrap(err, "on publish");
} }
source->set_publish_stream(this);
if (_srs_rtc_hijacker) { if (_srs_rtc_hijacker) {
if ((err = _srs_rtc_hijacker->on_start_publish(session_, this, req)) != srs_success) { if ((err = _srs_rtc_hijacker->on_start_publish(session_, this, req)) != srs_success) {
return srs_error_wrap(err, "on start publish"); return srs_error_wrap(err, "on start publish");