diff options
author | Max Kellermann <max@duempel.org> | 2013-11-11 16:15:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-13 21:06:33 +0100 |
commit | d2679f59c5a6c8df7a2140d40ab65a17b8e5c023 (patch) | |
tree | 803edccbb6c7d383199eba5f91a8610ee3c63c96 /src/DecoderInternal.cxx | |
parent | 4ee147ea34057c0bcef31afed55f98b025b997dc (diff) | |
download | mpd-d2679f59c5a6c8df7a2140d40ab65a17b8e5c023.tar.gz mpd-d2679f59c5a6c8df7a2140d40ab65a17b8e5c023.tar.xz mpd-d2679f59c5a6c8df7a2140d40ab65a17b8e5c023.zip |
PcmConvert: add methods Open(), Close()
Replaces Reset() and eliminates the AudioFormat parameters from the
Convert() method.
Diffstat (limited to 'src/DecoderInternal.cxx')
-rw-r--r-- | src/DecoderInternal.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DecoderInternal.cxx b/src/DecoderInternal.cxx index 26f91b2d9..38e54a36c 100644 --- a/src/DecoderInternal.cxx +++ b/src/DecoderInternal.cxx @@ -33,7 +33,11 @@ Decoder::~Decoder() /* caller must flush the chunk */ assert(chunk == nullptr); - delete convert; + if (convert != nullptr) { + convert->Close(); + delete convert; + } + delete song_tag; delete stream_tag; delete decoder_tag; |