# HG changeset patch # User nenolod # Date 1147664137 25200 # Node ID 6e95edd16b433043ce44389fe2937321d4c7c379 # Parent 3131795a78c4211fc6b536bf865281c914ba5ac7 [svn] - if writable == 0 then bail out of produce_audio() instead of segfault diff -r 3131795a78c4 -r 6e95edd16b43 audacious/output.c --- 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 */