player/Thread: don't send silence if decoder is slow
The output plugin shall decide whether to insert silence or do nothing at all. The ALSA output plugin has already implemented this. Inserting silence is not necessary or helpful for some plugins, and may even hurt them (e.g. "recorder").
This commit is contained in:
@@ -140,8 +140,7 @@ AudioOutputSource::GetChunkData(const MusicChunk &chunk,
|
||||
replay_gain_filter_set_mode(*current_replay_gain_filter,
|
||||
replay_gain_mode);
|
||||
|
||||
if (chunk.replay_gain_serial != *replay_gain_serial_p &&
|
||||
chunk.replay_gain_serial != MusicChunk::IGNORE_REPLAY_GAIN) {
|
||||
if (chunk.replay_gain_serial != *replay_gain_serial_p) {
|
||||
replay_gain_filter_set_info(*current_replay_gain_filter,
|
||||
chunk.replay_gain_serial != 0
|
||||
? &chunk.replay_gain_info
|
||||
|
Reference in New Issue
Block a user