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

RTC: Remove dead code

This commit is contained in:
winlin 2020-08-17 17:47:26 +08:00
parent 87ffb7071a
commit 5afabe4adf
3 changed files with 4 additions and 4 deletions

View file

@ -418,7 +418,7 @@ srs_error_t SrsRtcServer::create_session(
} }
// TODO: FIXME: Refine the API for stream status manage. // 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()); return srs_error_new(ERROR_RTC_SOURCE_BUSY, "stream %s busy", req->get_stream_url().c_str());
} }

View file

@ -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; return _can_publish;
} }

View file

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