changeset 403:2a762925c469 trunk

[svn] - reopen on flush(0)
author nenolod
date Wed, 03 Jan 2007 12:45:05 -0800
parents 1d50eb0b5a0a
children 41f98fe0c353
files ChangeLog src/disk_writer/disk_writer.c
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 02 22:28:23 2007 -0800
+++ b/ChangeLog	Wed Jan 03 12:45:05 2007 -0800
@@ -1,3 +1,12 @@
+2007-01-03 06:28:23 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [880]
+  - chase prefswin -> ui_preferences in audacious core
+  
+  trunk/src/scrobbler/plugin.c        |    2 +-
+  trunk/src/song_change/song_change.c |    2 +-
+  2 files changed, 2 insertions(+), 2 deletions(-)
+
+
 2006-12-29 12:53:41 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [878]
   - add connection timeout option to curl_easy_perform(). hopefully, audacious can quit smoothly even though last.fm server goes down.
--- a/src/disk_writer/disk_writer.c	Tue Jan 02 22:28:23 2007 -0800
+++ b/src/disk_writer/disk_writer.c	Wed Jan 03 12:45:05 2007 -0800
@@ -65,6 +65,7 @@
 static struct wavhead header;
 static guint64 written = 0;
 static AFormat afmt;
+static gint arate, ach;
 gint ctrlsocket_get_session_id(void);		/* FIXME */
 
 static void disk_init(void);
@@ -132,6 +133,8 @@
 
 	written = 0;
 	afmt = fmt;
+	arate = rate;
+	ach = nch;
 
 	if (xmms_check_realtime_priority())
 	{
@@ -276,6 +279,11 @@
 
 static void disk_flush(gint time)
 {
+	if (time == 0)
+	{
+		disk_close();
+		disk_open(afmt, arate, ach);
+	}
 }
 
 static void disk_pause(short p)