no timeout for ProcessC2Thread

main
Tom Early 4 years ago
parent 65d0c7702c
commit ab80b55219

@ -292,8 +292,7 @@ void CController::ProcessC2Thread()
while (keep_running)
{
auto packet = codec2_queue.pop();
if (packet)
{
switch (packet->GetCodecIn())
{
case ECodecType::c2_1600:
@ -302,6 +301,7 @@ void CController::ProcessC2Thread()
// Codec2toAudio will send it on for AMBE processing
Codec2toAudio(packet);
break;
case ECodecType::dstar:
case ECodecType::dmr:
// codec_in was AMBE, so we need to calculate the the M17 data
@ -309,9 +309,6 @@ void CController::ProcessC2Thread()
break;
}
}
else
std::this_thread::sleep_for(std::chrono::milliseconds(5));
}
}
void CController::SendToReflector(std::shared_ptr<CTranscoderPacket> packet)

Loading…
Cancel
Save

Powered by TurnKey Linux.