mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Apply valgrind fix to 1on1 audio too
I haven't seen valgrind complain too much, but let's fix it preemptively
This commit is contained in:
parent
d834eaca33
commit
3bc6909c96
|
@ -231,6 +231,7 @@ void Core::sendCallAudio(int callId, ToxAv* toxav)
|
|||
alcGetIntegerv(alInDev, ALC_CAPTURE_SAMPLES, sizeof(samples), &samples);
|
||||
if(samples >= framesize)
|
||||
{
|
||||
memset(buf, 0, framesize*2); // Avoid uninitialized values (Valgrind)
|
||||
alcCaptureSamples(alInDev, buf, framesize);
|
||||
frame = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user