diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 03:15:13 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 04:31:22 -0800 |
commit | 4c8b841fc492e21d0c079dc1217424f06beb72b7 (patch) | |
tree | ae741c36a09dc5f5cf5cb17606791db8ff2b3238 /audio | |
parent | 9371990bd14c74815babdd45ed3dd007087f60bc (diff) | |
download | mpv-4c8b841fc492e21d0c079dc1217424f06beb72b7.tar.bz2 mpv-4c8b841fc492e21d0c079dc1217424f06beb72b7.tar.xz |
ao/wasapi: request ao reload on thread_feed failures
Even with change notifications, there are still (rare) cases when the
feed thread gets AUDCLIENT_DEVICE_INVALIDATED. So handle failures in
thread_feed by requesting ao_reload.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_wasapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 6d66e5bdc3..dc031d0bc0 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -101,6 +101,8 @@ static void thread_feed(struct ao *ao) exit_label: MP_ERR(state, "Error feeding audio: %s (0x%"PRIx32")\n", wasapi_explain_err(hr), (uint32_t)hr); + MP_VERBOSE(ao, "Requesting ao reload\n"); + ao_request_reload(ao); return; } |