Mercurial > audlegacy
changeset 382:a9c7793de60c trunk
[svn] fix audio corruption when doing a short write.
author | nenolod |
---|---|
date | Tue, 03 Jan 2006 12:24:10 -0800 |
parents | 80c1efdeb36d |
children | 5c457dac866a |
files | Plugins/Output/OSS/audio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Output/OSS/audio.c Tue Jan 03 11:58:24 2006 -0800 +++ b/Plugins/Output/OSS/audio.c Tue Jan 03 12:24:10 2006 -0800 @@ -254,7 +254,7 @@ { ssize_t done = 0; do { - ssize_t n = write(fd, buf, count - done); + ssize_t n = write(fd, (gchar *) buf + done, count - done); if (n == -1) { if (errno == EINTR) continue;