Should check bridger status when publish stream.
This commit is contained in:
parent
c143b6bfd0
commit
fc4f539907
|
|
@ -433,6 +433,8 @@ void SrsRtcStream::on_consumer_destroy(SrsRtcConsumer* consumer)
|
||||||
|
|
||||||
bool SrsRtcStream::can_publish()
|
bool SrsRtcStream::can_publish()
|
||||||
{
|
{
|
||||||
|
// TODO: FIXME: Should check the status of bridger.
|
||||||
|
|
||||||
return !is_created_;
|
return !is_created_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2123,6 +2123,8 @@ void SrsSource::update_auth(SrsRequest* r)
|
||||||
|
|
||||||
bool SrsSource::can_publish(bool is_edge)
|
bool SrsSource::can_publish(bool is_edge)
|
||||||
{
|
{
|
||||||
|
// TODO: FIXME: Should check the status of bridger.
|
||||||
|
|
||||||
if (is_edge) {
|
if (is_edge) {
|
||||||
return publish_edge->can_publish();
|
return publish_edge->can_publish();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user