From 3a7b4df4bfd2d75140b0ebb89af9411f2902be04 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Wed, 17 May 2017 23:53:00 +1000 Subject: [PATCH] ao_wasapi: set name of event thread --- 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 3a4c341387..474528cd9c 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -22,6 +22,7 @@ #include #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);