From 7267558ba1cba9338c78b41d11e2eadef6bb515b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 4 Jan 2013 22:02:52 +0100 Subject: DecoderThread: move code to destructor --- src/DecoderInternal.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/DecoderInternal.hxx') diff --git a/src/DecoderInternal.hxx b/src/DecoderInternal.hxx index 69c8c0920..ae50a62e2 100644 --- a/src/DecoderInternal.hxx +++ b/src/DecoderInternal.hxx @@ -90,7 +90,11 @@ struct decoder { seeking(false), song_tag(_tag), stream_tag(nullptr), decoder_tag(nullptr), chunk(nullptr), - replay_gain_serial(0) {} + replay_gain_serial(0) { + pcm_convert_init(&conv_state); + } + + ~decoder(); }; /** -- cgit v1.2.3