1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-14 18:14:33 +01:00
parent d834eaca33
commit 3bc6909c96
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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;
}