summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2013-07-27 14:28:42 +1000
committerJames Ross-Gowan <rossymiles@gmail.com>2013-07-27 14:28:42 +1000
commit8e1461b9f80dfd39ba672e55bbd1259299cf8cd7 (patch)
treef21c556432335f4ba4d9f96516bee5edd8e43262 /audio
parentfac2d9097ef9e022e50917ac3d8a20a6748d69b8 (diff)
downloadmpv-8e1461b9f80dfd39ba672e55bbd1259299cf8cd7.tar.bz2
mpv-8e1461b9f80dfd39ba672e55bbd1259299cf8cd7.tar.xz
ao_wasapi: don't check the audio feed while paused
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_wasapi.c3
1 files changed, 2 insertions, 1 deletions
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? */