# HG changeset patch # User nenolod # Date 1147544438 25200 # Node ID 976a54334538577274a43bc9cb24ae2bfcb8c2e2 # Parent 06ca2c6283f4e741a31a480a835823f924e8b03c [svn] - abort out of produce_audio if a stop has been requested diff -r 06ca2c6283f4 -r 976a54334538 audacious/output.c --- a/audacious/output.c Sat May 13 11:20:11 2006 -0700 +++ b/audacious/output.c Sat May 13 11:20:38 2006 -0700 @@ -388,11 +388,14 @@ if (writable > 2048) writable = 2048; - while (op->buffer_free() < writable) { /* wait output buf */ - if (going && !*going) /* thread stopped? */ - return; /* so finish */ + while (op->buffer_free() < writable) { /* wait output buf */ + if (going && !*going) /* thread stopped? */ + return; /* so finish */ - g_usleep(10000); /* else sleep for retry */ + if (ip_data.stop) /* has a stop been requested? */ + return; /* yes, so finish */ + + g_usleep(10000); /* else sleep for retry */ } /* do output */