summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorPedro Pombeiro <pedropombeiro@gmail.com>2017-06-27 13:50:58 +0200
committerwm4 <wm4@nowhere>2017-06-29 10:36:16 +0200
commit4637b029cdd168d4196f5ab69fa5f91556ee5d11 (patch)
tree88bf0e222d4743ffb067daedef4985887f4fca37 /audio
parentf22d12ac5115a22a251e479c9c27e5f55337bb28 (diff)
downloadmpv-4637b029cdd168d4196f5ab69fa5f91556ee5d11.tar.bz2
mpv-4637b029cdd168d4196f5ab69fa5f91556ee5d11.tar.xz
Universal Windows Plaform (UWP) support
libmpv only. Some things are still missing. Heavily reworked. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_wasapi_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c
index 53ab1fe036..3aec5ac29a 100644
--- a/audio/out/ao_wasapi_utils.c
+++ b/audio/out/ao_wasapi_utils.c
@@ -663,11 +663,13 @@ static HRESULT fix_format(struct ao *ao, bool align_hack)
init_session_display(state);
init_volume_control(state);
+#if !HAVE_UWP
state->hTask = AvSetMmThreadCharacteristics(L"Pro Audio", &(DWORD){0});
if (!state->hTask) {
MP_WARN(state, "Failed to set AV thread to Pro Audio: %s\n",
mp_LastError_to_str());
}
+#endif
return S_OK;
exit_label:
@@ -980,6 +982,8 @@ void wasapi_thread_uninit(struct ao *ao)
SAFE_RELEASE(state->pSessionControl);
SAFE_RELEASE(state->pAudioClient);
SAFE_RELEASE(state->pDevice);
+#if !HAVE_UWP
SAFE_DESTROY(state->hTask, AvRevertMmThreadCharacteristics(state->hTask));
+#endif
MP_DBG(ao, "Thread uninit done\n");
}