Adds a 2.5 second timeout to the enc-amf-test on Windows, after which point the process self-terminates.
Motivation and Context
Some users report the OBS UI failing to appear despite obs64.exe running. In one case, this was caused by the AMF test executable freezing, and OBS waiting forever on a pipe ReadFile call. Self-terminating the test executable seemed like an easier implementation than asynchronous pipe I/O and has the benefit of cleaning up the frozen process.
Yes, it is a bit hacky, but AMF is long overdue for a rewrite anyway.
Description
Adds a 2.5 second timeout to the enc-amf-test on Windows, after which point the process self-terminates.
Motivation and Context
Some users report the OBS UI failing to appear despite obs64.exe running. In one case, this was caused by the AMF test executable freezing, and OBS waiting forever on a pipe
ReadFile
call. Self-terminating the test executable seemed like an easier implementation than asynchronous pipe I/O and has the benefit of cleaning up the frozen process.Yes, it is a bit hacky, but AMF is long overdue for a rewrite anyway.
Ref: https://github.com/obsproject/obs-studio/issues/6230
How Has This Been Tested?
Ran enc-amf-test with hardcoded delays and verified it terminated and OBS reported a timeout.
Types of changes
Checklist: