mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Log: Use string compare function
This commit is contained in:
parent
6624b8acca
commit
f551ff5ae8
6 changed files with 22 additions and 12 deletions
|
@ -291,13 +291,13 @@ srs_error_t SrsRtcSource::on_source_id_changed(SrsContextId id)
|
|||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
if (_source_id.equals(id)) {
|
||||
if (!_source_id.compare(id)) {
|
||||
return err;
|
||||
}
|
||||
|
||||
if (_pre_source_id.empty()) {
|
||||
_pre_source_id = id;
|
||||
} else if (!_pre_source_id.equals(_source_id)) {
|
||||
} else if (_pre_source_id.compare(_source_id)) {
|
||||
_pre_source_id = _source_id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue