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.
This commit is contained in:
Kevin Mitchell 2014-11-17 03:15:13 -08:00
parent 9371990bd1
commit 4c8b841fc4
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}