Mercurial > audlegacy
diff audacious/output.c @ 1051:6e95edd16b43 trunk
[svn] - if writable == 0 then bail out of produce_audio() instead of segfault
author | nenolod |
---|---|
date | Sun, 14 May 2006 20:35:37 -0700 |
parents | 976a54334538 |
children | 86da433104a8 |
line wrap: on
line diff
--- a/audacious/output.c Sun May 14 16:24:39 2006 -0700 +++ b/audacious/output.c Sun May 14 20:35:37 2006 -0700 @@ -388,6 +388,9 @@ if (writable > 2048) writable = 2048; + if (writable == 0) + return; + while (op->buffer_free() < writable) { /* wait output buf */ if (going && !*going) /* thread stopped? */ return; /* so finish */