Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2017-08-27 02:31:04 +0300
committerKacper Michajłow <kasper93@gmail.com>2017-08-27 14:44:29 +0300
commite1bebc9e26e550e31111f75b733319a2cd52587b (patch)
tree12923522f5ffda42111cd50f947c0054e2ee65f3
parenta438076a17ffe9326ed978960605e3729f25d30b (diff)
Ignore audio device events if we are awaiting renew.mpc-hc-1.7.13-2core
-rw-r--r--src/AudioDeviceEvent.cpp3
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