mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-23 03:28:30 +00:00
Fixed infinite recursion if the WASAPI audio device couldn't be recovered
This commit is contained in:
@@ -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;
|
||||
@@ -622,7 +621,6 @@ WASAPI_FlushCapture(_THIS)
|
||||
}
|
||||
}
|
||||
SDL_AudioStreamClear(this->hidden->capturestream);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user