Fixed infinite recursion if the WASAPI audio device couldn't be recovered

This commit is contained in:
Sam Lantinga 2017-07-27 22:52:19 -07:00
parent f033ce61e1
commit 4a734209a3

View File

@ -605,7 +605,6 @@ WASAPI_CaptureFromDevice(_THIS, void *buffer, int buflen)
static void static void
WASAPI_FlushCapture(_THIS) WASAPI_FlushCapture(_THIS)
{ {
if (RecoverWasapiIfLost(this)) {
BYTE *ptr = NULL; BYTE *ptr = NULL;
UINT32 frames = 0; UINT32 frames = 0;
DWORD flags = 0; DWORD flags = 0;
@ -623,7 +622,6 @@ WASAPI_FlushCapture(_THIS)
} }
SDL_AudioStreamClear(this->hidden->capturestream); SDL_AudioStreamClear(this->hidden->capturestream);
} }
}
static void static void
ReleaseWasapiDevice(_THIS) ReleaseWasapiDevice(_THIS)