DecoderThread: move code to destructor

This commit is contained in:
Max Kellermann
2013-01-04 22:02:52 +01:00
parent ac6803e7b7
commit 7267558ba1
3 changed files with 26 additions and 14 deletions

View File

@@ -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();
};
/**