Compare commits

..

No commits in common. "af6d2650185a971c85b056c0ff9654bd9baa0f75" and "e69c0e648c1192a5a2da8a8b1f5899cf39fca65a" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -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()) {

View File

@ -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;
}