aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-26 14:12:10 +0200
committerMax Kellermann <max@duempel.org>2013-10-26 14:12:10 +0200
commit2098b94b47a60f6265dd5afb61757e9f6b7f9a6e (patch)
treeb038337e4d72840e70d7cfab044cbd405e7fbcae /src/DecoderControl.cxx
parent59ad6265a170d8105183ac65bd6663d53124d360 (diff)
downloadmpd-2098b94b47a60f6265dd5afb61757e9f6b7f9a6e.tar.gz
mpd-2098b94b47a60f6265dd5afb61757e9f6b7f9a6e.tar.xz
mpd-2098b94b47a60f6265dd5afb61757e9f6b7f9a6e.zip
DecoderThread: move code to DecoderControl::CycleMixRamp()
Diffstat (limited to 'src/DecoderControl.cxx')
-rw-r--r--src/DecoderControl.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/DecoderControl.cxx b/src/DecoderControl.cxx
index ff6d1ad2d..cbe93361e 100644
--- a/src/DecoderControl.cxx
+++ b/src/DecoderControl.cxx
@@ -144,8 +144,11 @@ decoder_control::MixRampEnd(char *_mixramp_end)
}
void
-decoder_control::MixRampPrevEnd(char *_mixramp_prev_end)
+decoder_control::CycleMixRamp()
{
+ g_free(mixramp_start);
+ mixramp_start = nullptr;
g_free(mixramp_prev_end);
- mixramp_prev_end = _mixramp_prev_end;
+ mixramp_prev_end = mixramp_end;
+ mixramp_end = nullptr;
}