changeset 2017:a99862e5bd65 trunk

[svn] - avoid a race condition in produce_audio() where we have closed output, but produce_audio() had already been queued
author nenolod
date Mon, 27 Nov 2006 18:12:56 -0800
parents 917903e2fc1c
children 58ea18909fe7
files ChangeLog audacious/output.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 27 17:58:02 2006 -0800
+++ b/ChangeLog	Mon Nov 27 18:12:56 2006 -0800
@@ -1,3 +1,13 @@
+2006-11-28 01:58:02 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3027]
+  - fix a bug regarding shaded mode in the playlist editor where 
+    decorations are not properly rendered.
+  Patch by external contributor: Ralf Ertzinger <ralf@skytale.net>
+  
+  trunk/audacious/widgets/skin.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2006-11-27 23:38:11 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3025]
   - run chardet against even valid UTF-8 strings, as they may be non-UTF-8 
--- a/audacious/output.c	Mon Nov 27 17:58:02 2006 -0800
+++ b/audacious/output.c	Mon Nov 27 18:12:56 2006 -0800
@@ -394,6 +394,9 @@
 	if (ip_data.stop)
 	    return;
 
+	if (going && !*going)                  /*   thread stopped?          */
+	    return;                            /*     so finish              */
+
 	/* do output */
 	op->write_audio(((guint8 *) ptr) + writeoffs, writable);