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

@@ -79,14 +79,6 @@ struct MusicChunkInfo {
*/
ReplayGainInfo replay_gain_info;
/**
* A magic value for #replay_gain_serial which omits updating
* the #ReplayGainFilter. This is used by "silence" chunks
* (see PlayerThread::SendSilence()) so they don't affect the
* replay gain.
*/
static constexpr unsigned IGNORE_REPLAY_GAIN = ~0u;
/**
* A serial number for checking if replay gain info has
* changed since the last chunk. The magic value 0 indicates