mirror of https://github.com/mpv-player/mpv
ao_wasapi_utils: remove invalid audio session icon path (fixes #7269)
This commit is contained in:
parent
b926f18938
commit
c40554295a
|
@ -525,9 +525,8 @@ static void init_session_display(struct wasapi_state *state) {
|
||||||
(void **)&state->pSessionControl);
|
(void **)&state->pSessionControl);
|
||||||
EXIT_ON_ERROR(hr);
|
EXIT_ON_ERROR(hr);
|
||||||
|
|
||||||
wchar_t path[MAX_PATH+12] = {0};
|
wchar_t path[MAX_PATH] = {0};
|
||||||
GetModuleFileNameW(NULL, path, MAX_PATH);
|
GetModuleFileNameW(NULL, path, MAX_PATH);
|
||||||
wcscat(path, L",-IDI_ICON1");
|
|
||||||
hr = IAudioSessionControl_SetIconPath(state->pSessionControl, path, NULL);
|
hr = IAudioSessionControl_SetIconPath(state->pSessionControl, path, NULL);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
// don't goto exit_label here since SetDisplayName might still work
|
// don't goto exit_label here since SetDisplayName might still work
|
||||||
|
|
Loading…
Reference in New Issue