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:
Max Kellermann
2018-01-02 22:03:38 +01:00
parent 859e59262e
commit 98a7c62d7a
3 changed files with 4 additions and 87 deletions

View File

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