RTC: Remove dead code

pull/1925/head
winlin 5 years ago
parent 87ffb7071a
commit 5afabe4adf

@ -418,7 +418,7 @@ srs_error_t SrsRtcServer::create_session(
}
// TODO: FIXME: Refine the API for stream status manage.
if (publish && !source->can_publish(false)) {
if (publish && !source->can_publish()) {
return srs_error_new(ERROR_RTC_SOURCE_BUSY, "stream %s busy", req->get_stream_url().c_str());
}

@ -406,7 +406,7 @@ void SrsRtcStream::on_consumer_destroy(SrsRtcConsumer* consumer)
}
}
bool SrsRtcStream::can_publish(bool is_edge)
bool SrsRtcStream::can_publish()
{
return _can_publish;
}

@ -178,8 +178,8 @@ public:
// @param dg, whether dumps the gop cache.
virtual srs_error_t consumer_dumps(SrsRtcConsumer* consumer, bool ds = true, bool dm = true, bool dg = true);
virtual void on_consumer_destroy(SrsRtcConsumer* consumer);
// TODO: FIXME: Remove the param is_edge.
virtual bool can_publish(bool is_edge);
// Whether we can publish stream to the source, return false if it exists.
virtual bool can_publish();
// When start publish stream.
virtual srs_error_t on_publish();
// When stop publish stream.

Loading…
Cancel
Save