output/Thread: skip WaitForDelay() after resuming playback

This allows removing the "base.pause" check from the JACK output
plugin, and will allow removing similar accesses from other plugins.
This commit is contained in:
Max Kellermann
2017-05-23 10:58:30 +02:00
parent a50b2c3b85
commit 353299168a
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ struct JackOutput {
size_t WriteSamples(const float *src, size_t n_frames);
std::chrono::steady_clock::duration Delay() const noexcept {
return base.pause && pause && !shutdown
return pause && !shutdown
? std::chrono::seconds(1)
: std::chrono::steady_clock::duration::zero();
}