decoder/Control: make ReplayGainConfig const

This commit is contained in:
Max Kellermann
2016-12-03 13:05:25 +01:00
parent 3000b9dcde
commit 6cc1ff5eeb
3 changed files with 8 additions and 6 deletions

View File

@@ -345,7 +345,6 @@ Player::StartDecoder(MusicPipe &_pipe)
{
/* copy ReplayGain parameters to the decoder */
const ScopeLock protect(pc.mutex);
dc.replay_gain_config = pc.replay_gain_config;
dc.replay_gain_mode = pc.replay_gain_mode;
}
@@ -1164,7 +1163,7 @@ player_task(void *arg)
SetThreadName("player");
DecoderControl dc(pc.mutex, pc.cond);
DecoderControl dc(pc.mutex, pc.cond, pc.replay_gain_config);
decoder_thread_start(dc);
MusicBuffer buffer(pc.buffer_chunks);