Commit 55e6629f authored by Max Kellermann's avatar Max Kellermann

output/Control: catch and log StartThread() exceptions

parent b6251c69
...@@ -190,8 +190,14 @@ AudioOutputControl::Open(const AudioFormat audio_format, ...@@ -190,8 +190,14 @@ AudioOutputControl::Open(const AudioFormat audio_format,
request.audio_format = audio_format; request.audio_format = audio_format;
request.pipe = ∓ request.pipe = ∓
if (!thread.IsDefined()) if (!thread.IsDefined()) {
try {
StartThread(); StartThread();
} catch (...) {
LogError(std::current_exception());
return false;
}
}
CommandWait(Command::OPEN); CommandWait(Command::OPEN);
const bool open2 = open; const bool open2 = open;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment