changeset 4364:695e1c91be36

Reset op_state after calling close_audio to prevent possible future flushing.
author Sascha Hlusiak <contact@saschahlusiak.de>
date Mon, 24 Mar 2008 17:02:26 +0100
parents 80feba8e9034
children 5c40eeb8a8a9 2fa51f742f25
files src/audacious/output.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/output.c	Sun Mar 23 15:58:34 2008 +0100
+++ b/src/audacious/output.c	Mon Mar 24 17:02:26 2008 +0100
@@ -289,6 +289,9 @@
     {
         plugin_set_current((Plugin *)op);
         op->close_audio();
+	op_state.fmt = 0;
+	op_state.rate = 0;
+	op_state.nch = 0;
     }
 
     plugin_set_current((Plugin *)op);