mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Fixed infinite recursion if the WASAPI audio device couldn't be recovered
This commit is contained in:
parent
f033ce61e1
commit
4a734209a3
@ -605,7 +605,6 @@ WASAPI_CaptureFromDevice(_THIS, void *buffer, int buflen)
|
||||
static void
|
||||
WASAPI_FlushCapture(_THIS)
|
||||
{
|
||||
if (RecoverWasapiIfLost(this)) {
|
||||
BYTE *ptr = NULL;
|
||||
UINT32 frames = 0;
|
||||
DWORD flags = 0;
|
||||
@ -623,7 +622,6 @@ WASAPI_FlushCapture(_THIS)
|
||||
}
|
||||
SDL_AudioStreamClear(this->hidden->capturestream);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
ReleaseWasapiDevice(_THIS)
|
||||
|
Loading…
Reference in New Issue
Block a user