diff options
author | Max Kellermann <max@duempel.org> | 2008-09-11 07:50:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-11 07:50:11 +0200 |
commit | 420c879dd65e1cafe3492f076f7f41bffd438b37 (patch) | |
tree | 60142e8f1401e5daed85598dccda2d5a463e6c16 /src | |
parent | 19fe134b38f5f4696b9a12fd419da7d4ff03886a (diff) | |
download | mpd-420c879dd65e1cafe3492f076f7f41bffd438b37.tar.gz mpd-420c879dd65e1cafe3492f076f7f41bffd438b37.tar.xz mpd-420c879dd65e1cafe3492f076f7f41bffd438b37.zip |
output: don't initialize inAudioFormat, outAudioFormat
As long as the device isn't open, both attributes are not used. Since
they will both be initialized in audio_output_open(), we do not need
the initialization in audio_output_init().
Diffstat (limited to '')
-rw-r--r-- | src/output_init.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/output_init.c b/src/output_init.c index 00226f7d8..f6d3799c4 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -89,16 +89,12 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param) ao->convBuffer = NULL; ao->convBufferLen = 0; - memset(&ao->inAudioFormat, 0, sizeof(ao->inAudioFormat)); - memset(&ao->outAudioFormat, 0, sizeof(ao->outAudioFormat)); memset(&ao->convState, 0, sizeof(ConvState)); if (format) { if (0 != parseAudioConfig(&ao->reqAudioFormat, format)) { FATAL("error parsing format at line %i\n", bp->line); } - - ao->outAudioFormat = ao->reqAudioFormat; } else audio_format_clear(&ao->reqAudioFormat); |