From e6d90d4e83263c37bbee878aed782bf13669daa1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Oct 2008 22:53:16 +0200 Subject: 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. --- src/decoder_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder_api.c') diff --git a/src/decoder_api.c b/src/decoder_api.c index a90fb6370..f20dbf42d 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -47,7 +47,7 @@ void decoder_initialized(struct decoder * decoder, { assert(dc.state == DECODE_STATE_START); - memset(&decoder->conv_state, 0, sizeof(decoder->conv_state)); + pcm_convert_init(&decoder->conv_state); if (audio_format != NULL) { dc.audioFormat = *audio_format; -- cgit v1.2.3