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