aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_init.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-21 22:53:16 +0200
committerMax Kellermann <max@duempel.org>2008-10-21 22:53:16 +0200
commite6d90d4e83263c37bbee878aed782bf13669daa1 (patch)
tree08ce9780ddad6f653edad4b958e844f7e9be568f /src/output_init.c
parentca6e613a7f3a05d414353c44d18d30c5e77ac8c3 (diff)
downloadmpd-e6d90d4e83263c37bbee878aed782bf13669daa1.tar.gz
mpd-e6d90d4e83263c37bbee878aed782bf13669daa1.tar.xz
mpd-e6d90d4e83263c37bbee878aed782bf13669daa1.zip
pcm_utils: added pcm_convert_init()
Instead of manually calling memset(0) on the pcm_convert_state struct, client code should use a library function from pcm_utils.c. This way, we can change the semantics of the struct easily.
Diffstat (limited to '')
-rw-r--r--src/output_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output_init.c b/src/output_init.c
index cf50db3ad..ebfbf137e 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -90,7 +90,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param)
ao->convBuffer = NULL;
ao->convBufferLen = 0;
- memset(&ao->convState, 0, sizeof(ao->convState));
+ pcm_convert_init(&ao->convState);
if (format) {
if (0 != parseAudioConfig(&ao->reqAudioFormat, format)) {