mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
rid支持更新
This commit is contained in:
parent
365aead8b6
commit
0f1d1ded7e
@ -623,7 +623,9 @@ void RtpExtContext::changeRtpExtId(const RtpHeader *header, bool is_recv, string
|
||||
rid = _ssrc_to_rid[ssrc];
|
||||
} else {
|
||||
//设置rid
|
||||
if (_ssrc_to_rid.emplace(ssrc, rid).second) {
|
||||
auto it = _ssrc_to_rid.find(ssrc);
|
||||
if (it == _ssrc_to_rid.end() || it->second != rid) {
|
||||
_ssrc_to_rid[ssrc] = rid;
|
||||
onGetRtp(header->pt, ssrc, rid);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user