diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2017-05-17 23:53:00 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2017-05-18 00:11:14 +1000 |
commit | 3a7b4df4bfd2d75140b0ebb89af9411f2902be04 (patch) | |
tree | 07c1b802664c6a42dcee7745b87193ec1dcdf396 | |
parent | bc381dd05e654d106b6cb4d7d94b27b9afe2bf30 (diff) | |
download | mpv-3a7b4df4bfd2d75140b0ebb89af9411f2902be04.tar.bz2 mpv-3a7b4df4bfd2d75140b0ebb89af9411f2902be04.tar.xz |
ao_wasapi: set name of event thread
-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 3a4c341387..474528cd9c 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -22,6 +22,7 @@ #include <libavutil/mathematics.h> #include "options/m_option.h" +#include "osdep/threads.h" #include "osdep/timer.h" #include "osdep/io.h" #include "misc/dispatch.h" @@ -196,6 +197,7 @@ static DWORD __stdcall AudioThread(void *lpParameter) { struct ao *ao = lpParameter; struct wasapi_state *state = ao->priv; + mpthread_set_name("wasapi event"); CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); state->init_ret = wasapi_thread_init(ao); |