mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-21 03:57:55 +00: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 a new issue