Commit 980ef822 authored by Max Kellermann's avatar Max Kellermann

output/wasapi: move SetEventHandle() call to thread constructor

parent 84a06a72
......@@ -187,6 +187,7 @@ public:
buffer_size_in_frames(_buffer_size_in_frames), is_exclusive(_is_exclusive),
spsc_buffer(_buffer_size_in_frames * 4 * _frame_size)
{
SetEventHandle(*client, event.handle());
}
void Finish() noexcept { return SetStatus(Status::FINISH); }
......@@ -545,8 +546,6 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
thread.emplace(client.get(), std::move(render_client), FrameSize(),
buffer_size_in_frames, is_exclusive);
SetEventHandle(*client, thread->event.handle());
thread->Start();
}
......
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