DecoderThread: move code to DecoderControl::CycleMixRamp()

This commit is contained in:
Max Kellermann
2013-10-26 14:12:10 +02:00
parent 59ad6265a1
commit 2098b94b47
3 changed files with 12 additions and 6 deletions

View File

@@ -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;
}