Skip to content
Snippets Groups Projects
Commit 259d3fc9 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

add a condition on bytesAvail == 0 from mic data

parent 7426b982
No related branches found
No related tags found
No related merge requests found
......@@ -375,6 +375,8 @@ AudioRtpRTX::sendSessionFromMic(int timestamp)
int bytesAvail = (availBytesFromMic < maxBytesToGet) ? availBytesFromMic : maxBytesToGet;
if (bytesAvail == 0)
return;
// Get bytes from micRingBuffer to data_from_mic
//_debug("get data from mic\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment