mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
win-wasapi: Fix timeout bug
The WaitForSignal message is supposed to return return true if the handle was signaled, not if the wait timed out.
This commit is contained in:
1 parent
1143b1d631
commit
75bc7d3153
1 file changed
+1
-1
@@ -309,7 +309,7 @@ void WASAPISource::Reconnect()
|
||||
|
||||
static inline bool WaitForSignal(HANDLE handle, DWORD time)
|
||||
{
|
||||
return WaitForSingleObject(handle, time) == WAIT_TIMEOUT;
|
||||
return WaitForSingleObject(handle, time) != WAIT_TIMEOUT;
|
||||
}
|
||||
|
||||
#define RECONNECT_INTERVAL 3000
|
||||
|
||||
Reference in new issue
Block a user