From 8e1461b9f80dfd39ba672e55bbd1259299cf8cd7 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sat, 27 Jul 2013 14:28:42 +1000 Subject: [PATCH] ao_wasapi: don't check the audio feed while paused --- audio/out/ao_wasapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 33c4c3b7ea..0e8d40f2bf 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -1150,7 +1150,8 @@ static unsigned int __stdcall ThreadLoop(void *lpParameter) thread_play(state); break; case (WAIT_OBJECT_0 + 6): /* feed */ - feedwatch = 1; + if (state->is_playing) + feedwatch = 1; thread_feed(state, 0); break; case WAIT_TIMEOUT: /* Did our feed die? */