mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
rewrite #438
This commit is contained in:
parent
f9257b89e7
commit
db9ea4e66e
5 changed files with 23 additions and 44 deletions
|
@ -1350,14 +1350,13 @@ int SrsSource::source_id()
|
|||
return _source_id;
|
||||
}
|
||||
|
||||
bool SrsSource::can_publish()
|
||||
bool SrsSource::can_publish(bool is_edge)
|
||||
{
|
||||
return _can_publish;
|
||||
}
|
||||
if (is_edge) {
|
||||
return publish_edge->can_publish();
|
||||
}
|
||||
|
||||
bool SrsSource::proxy_can_publish()
|
||||
{
|
||||
return publish_edge->can_publish();
|
||||
return _can_publish;
|
||||
}
|
||||
|
||||
int SrsSource::on_meta_data(SrsCommonMessage* msg, SrsOnMetaDataPacket* metadata)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue