From 4c8b841fc492e21d0c079dc1217424f06beb72b7 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Mon, 17 Nov 2014 03:15:13 -0800 Subject: 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. --- audio/out/ao_wasapi.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3