changeset 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 3131795a78c4
children d156312807c1
files audacious/output.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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              */