From 2098b94b47a60f6265dd5afb61757e9f6b7f9a6e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Oct 2013 14:12:10 +0200 Subject: DecoderThread: move code to DecoderControl::CycleMixRamp() --- src/DecoderControl.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/DecoderControl.cxx') 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; } -- cgit v1.2.3