diff options
author | Max Kellermann <max@duempel.org> | 2009-03-10 21:04:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-10 21:04:47 +0100 |
commit | 2b5786314420a2d527d2b3b1078dc8625fcb73d5 (patch) | |
tree | 7fc9034a1b35d992aa7eaa1f3c6e1592ccc74a66 /src/output_all.c | |
parent | f2ec6ee184d3d396cc3689e3d5d0a3a0ecf84c4a (diff) | |
download | mpd-2b5786314420a2d527d2b3b1078dc8625fcb73d5.tar.gz mpd-2b5786314420a2d527d2b3b1078dc8625fcb73d5.tar.xz mpd-2b5786314420a2d527d2b3b1078dc8625fcb73d5.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/output_all.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |