Files
pkgsrc-ng/audio/jack/patches/patch-ao
2013-09-26 17:14:40 +02:00

16 lines
580 B
Plaintext

$NetBSD: patch-ao,v 1.2 2008/11/16 11:22:55 bjs Exp $
We want to make sure there's no garbage in the output buffer, otherwise
untoward stuff can happen.
--- drivers/oss/oss_driver.c.orig 2008-11-11 17:36:43.000000000 -0500
+++ drivers/oss/oss_driver.c
@@ -1042,6 +1042,7 @@ static void *io_thread (void *param)
pthread_mutex_lock(&driver->mutex_out);
memcpy(localbuf, driver->outdevbuf,
driver->outdevbufsize);
+ memset(driver->outdevbuf, 0x00, driver->outdevbufsize);
pthread_mutex_unlock(&driver->mutex_out);
io_res = write(driver->outfd, localbuf,