DecoderInternal: allocate PcmConvert dynamically

Reduce header dependencies and allow it to be nullptr to disable it.
This commit is contained in:
Max Kellermann
2013-11-13 19:10:43 +01:00
parent a80b5cf19b
commit f1ca61d7d7
3 changed files with 30 additions and 14 deletions

View File

@@ -20,6 +20,7 @@
#include "config.h"
#include "DecoderInternal.hxx"
#include "DecoderControl.hxx"
#include "pcm/PcmConvert.hxx"
#include "MusicPipe.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
@@ -32,6 +33,7 @@ Decoder::~Decoder()
/* caller must flush the chunk */
assert(chunk == nullptr);
delete convert;
delete song_tag;
delete stream_tag;
delete decoder_tag;