License server memory validation

This commit is contained in:
WolverinDEV
2020-04-03 19:07:03 +02:00
parent 240052da3a
commit 8e4d52ddd2
9 changed files with 28 additions and 7 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ bool ConnectedClient::notifyClientLeftView(
std::shared_ptr<ConnectedClient> invoker,
bool lock_channel_tree) {
assert(!lock_channel_tree); /* not supported yet! */
assert(client && client->getClientId() != 0);
assert(client && client != this && client->getClientId() != 0);
assert(client->currentChannel || &*client == this);
if(client != this) {
+4
View File
@@ -177,6 +177,10 @@ void VoiceBridge::handle_media_stream(const std::shared_ptr<rtc::Channel> &undef
if(!stream) return;
this->_audio_channel = stream;
for(const auto& ex : stream->list_extensions()) {
debugMessage(0, "{} | {}", ex->name, ex->id);
}
stream->register_local_extension("urn:ietf:params:rtp-hdrext:ssrc-audio-level");
for(const auto& codec : stream->list_codecs()) {
if(codec->type == rtc::codec::Codec::OPUS) {