1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00

ao_wasapi_utils: remove invalid audio session icon path (fixes #7269)

This commit is contained in:
Rafael Rivera 2020-01-30 11:31:48 -08:00 committed by James Ross-Gowan
parent b926f18938
commit c40554295a

View File

@ -525,9 +525,8 @@ static void init_session_display(struct wasapi_state *state) {
(void **)&state->pSessionControl);
EXIT_ON_ERROR(hr);
wchar_t path[MAX_PATH+12] = {0};
wchar_t path[MAX_PATH] = {0};
GetModuleFileNameW(NULL, path, MAX_PATH);
wcscat(path, L",-IDI_ICON1");
hr = IAudioSessionControl_SetIconPath(state->pSessionControl, path, NULL);
if (FAILED(hr)) {
// don't goto exit_label here since SetDisplayName might still work