diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2017-08-27 02:31:04 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2017-08-27 14:44:29 +0300 |
commit | e1bebc9e26e550e31111f75b733319a2cd52587b (patch) | |
tree | 12923522f5ffda42111cd50f947c0054e2ee65f3 | |
parent | a438076a17ffe9326ed978960605e3729f25d30b (diff) |
Ignore audio device events if we are awaiting renew.mpc-hc-1.7.13-2core
-rw-r--r-- | src/AudioDeviceEvent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/AudioDeviceEvent.cpp b/src/AudioDeviceEvent.cpp index 9280a0e..39fb23d 100644 --- a/src/AudioDeviceEvent.cpp +++ b/src/AudioDeviceEvent.cpp @@ -257,6 +257,9 @@ namespace SaneAudioRenderer {
CAutoLock threadLock(&m_threadMutex);
+ if (m_awaitingRenew)
+ continue;
+
assert(m_sentFrames > 0 || m_queuedStart);
try
|