RTC: Remove dead code
This commit is contained in:
parent
f8ad90c68d
commit
34d119f7b4
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user