diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 22:02:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 22:02:52 +0100 |
commit | 7267558ba1cba9338c78b41d11e2eadef6bb515b (patch) | |
tree | 3e351410fab0fbfeb367979d6af8dadace02145a /src/DecoderThread.cxx | |
parent | ac6803e7b73b96573c7b6823e03bc153d1f63b8a (diff) | |
download | mpd-7267558ba1cba9338c78b41d11e2eadef6bb515b.tar.gz mpd-7267558ba1cba9338c78b41d11e2eadef6bb515b.tar.xz mpd-7267558ba1cba9338c78b41d11e2eadef6bb515b.zip |
DecoderThread: move code to destructor
Diffstat (limited to '')
-rw-r--r-- | src/DecoderThread.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx index cf16bea2d..18228f381 100644 --- a/src/DecoderThread.cxx +++ b/src/DecoderThread.cxx @@ -389,30 +389,17 @@ decoder_run_song(struct decoder_control *dc, decoder_command_finished_locked(dc); - pcm_convert_init(&decoder.conv_state); - ret = song_is_file(song) ? decoder_run_file(&decoder, uri) : decoder_run_stream(&decoder, uri); decoder_unlock(dc); - pcm_convert_deinit(&decoder.conv_state); - /* flush the last chunk */ if (decoder.chunk != NULL) decoder_flush_chunk(&decoder); - if (decoder.song_tag != NULL) - tag_free(decoder.song_tag); - - if (decoder.stream_tag != NULL) - tag_free(decoder.stream_tag); - - if (decoder.decoder_tag != NULL) - tag_free(decoder.decoder_tag); - decoder_lock(dc); if (ret) |