Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Nov 14, 2018
1 parent 296187a commit 81daf3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions JitterBuffer.cpp
Expand Up @@ -51,6 +51,7 @@ JitterBuffer::~JitterBuffer(){
}

void JitterBuffer::SetMinPacketCount(uint32_t count){
LOGI("jitter: set min packet count %u", count);
minDelay=count;
minMinDelay=count;
//Reset();
Expand Down
2 changes: 1 addition & 1 deletion VoIPController.cpp
Expand Up @@ -1477,7 +1477,7 @@ simpleAudioBlock random_id:long random_bytes:string raw_data:string = DecryptedA
if(stm->type==STREAM_TYPE_AUDIO){
stm->jitterBuffer=make_shared<JitterBuffer>(nullptr, stm->frameDuration);
if(stm->frameDuration>50)
stm->jitterBuffer->SetMinPacketCount((uint32_t) ServerConfig::GetSharedInstance()->GetInt("jitter_initial_delay_60", 3));
stm->jitterBuffer->SetMinPacketCount((uint32_t) ServerConfig::GetSharedInstance()->GetInt("jitter_initial_delay_60", 2));
else if(stm->frameDuration>30)
stm->jitterBuffer->SetMinPacketCount((uint32_t) ServerConfig::GetSharedInstance()->GetInt("jitter_initial_delay_40", 4));
else
Expand Down

0 comments on commit 81daf3f

Please sign in to comment.