diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-06-19 19:43:12 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-06-21 17:31:59 +0200 |
commit | 3dc661fe8e262014567c5850b9d71f49de3df79a (patch) | |
tree | 0e2e9796f13c72d56c529aea5d680a395578046b /audio/out/ao_wasapi_utils.c | |
parent | ee155d79fd7b669de6d91654fc84ea26aaeac892 (diff) | |
download | mpv-3dc661fe8e262014567c5850b9d71f49de3df79a.tar.bz2 mpv-3dc661fe8e262014567c5850b9d71f49de3df79a.tar.xz |
ao_wasapi: remove infinite loop hack in AOCONTROL_UPDATE_STREAM_TITLE
Instead of brute forcing the name until it is set, without any error
checking and expecting it would start to work, fallback to client name
if initial request fails.
Fixes player going into infinite loop with very long title names. The
API rejects unreasonably long names, which make sense.
As for alleged "weird race condition in the IAudioSessionControl itself"
I cannot comment. It works on my end and even if it fails, it is not a
critical error or even something that we should care about... and
obviously not hang the whole player for that.
Fixes: #11803
Diffstat (limited to 'audio/out/ao_wasapi_utils.c')
0 files changed, 0 insertions, 0 deletions