mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-24 03:30:52 +08:00
Compare commits
2 Commits
e69c0e648c
...
af6d265018
Author | SHA1 | Date | |
---|---|---|---|
|
af6d265018 | ||
|
eb8e39d897 |
@ -346,7 +346,7 @@ public:
|
|||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
void for_each(std::function<void(const std::string&, const Pointer&)> cb) {
|
void for_each(const std::function<void(const std::string&, const Pointer&)>& cb) {
|
||||||
std::lock_guard<std::recursive_mutex> lck(_mtx);
|
std::lock_guard<std::recursive_mutex> lck(_mtx);
|
||||||
auto it = _map.begin();
|
auto it = _map.begin();
|
||||||
while (it != _map.end()) {
|
while (it != _map.end()) {
|
||||||
|
@ -296,10 +296,12 @@ void RtpServer::updateSSRC(uint32_t ssrc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t RtpServer::getSSRC() const {
|
uint32_t RtpServer::getSSRC() const {
|
||||||
if (_ssrc)
|
if (_ssrc) {
|
||||||
return *_ssrc;
|
return *_ssrc;
|
||||||
else if (_tcp_server)
|
}
|
||||||
|
if (_tcp_server) {
|
||||||
return (*_tcp_server)[RtpSession::kSSRC];
|
return (*_tcp_server)[RtpSession::kSSRC];
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user