aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 2d2e50b39..12449237f 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -124,6 +124,8 @@ static void decoder_run_song(const struct song *song, const char *uri)
return;
}
+ pcm_convert_init(&decoder.conv_state);
+
ret = false;
if (!song_is_file(song)) {
unsigned int next = 0;
@@ -187,6 +189,8 @@ static void decoder_run_song(const struct song *song, const char *uri)
}
}
+ pcm_convert_deinit(&decoder.conv_state);
+
music_pipe_flush();
if (close_instream)