ao_wasapi: set name of event thread

This commit is contained in:
James Ross-Gowan 2017-05-17 23:53:00 +10:00
parent bc381dd05e
commit 3a7b4df4bf
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <libavutil/mathematics.h> #include <libavutil/mathematics.h>
#include "options/m_option.h" #include "options/m_option.h"
#include "osdep/threads.h"
#include "osdep/timer.h" #include "osdep/timer.h"
#include "osdep/io.h" #include "osdep/io.h"
#include "misc/dispatch.h" #include "misc/dispatch.h"
@ -196,6 +197,7 @@ static DWORD __stdcall AudioThread(void *lpParameter)
{ {
struct ao *ao = lpParameter; struct ao *ao = lpParameter;
struct wasapi_state *state = ao->priv; struct wasapi_state *state = ao->priv;
mpthread_set_name("wasapi event");
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
state->init_ret = wasapi_thread_init(ao); state->init_ret = wasapi_thread_init(ao);