From 2b5786314420a2d527d2b3b1078dc8625fcb73d5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Mar 2009 21:04:47 +0100 Subject: output_all: clear input_audio_format on close When the audio outputs are closed, also clear the audio format. If we don't do this, every call to audio_output_all_update() will open the device, even if it's meant to be paused. --- src/output_all.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/output_all.c') diff --git a/src/output_all.c b/src/output_all.c index 3bbf4a933..a0f90df52 100644 --- a/src/output_all.c +++ b/src/output_all.c @@ -443,4 +443,6 @@ audio_output_all_close(void) } g_music_buffer = NULL; + + audio_format_clear(&input_audio_format); } -- cgit v1.2.3