From 03f8528315fa46c95991a34f3325d7b33ae5538c Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Sat, 02 May 2020 21:48:36 +0000
Subject: [PATCH] Update source to SDL2 2.0.12
---
source/src/audio/pulseaudio/SDL_pulseaudio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/src/audio/pulseaudio/SDL_pulseaudio.c b/source/src/audio/pulseaudio/SDL_pulseaudio.c
index 053a1c3..a279da5 100644
--- a/source/src/audio/pulseaudio/SDL_pulseaudio.c
+++ b/source/src/audio/pulseaudio/SDL_pulseaudio.c
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -429,7 +429,7 @@
h->capturelen = 0;
}
- while (SDL_TRUE) {
+ while (SDL_AtomicGet(&this->enabled)) {
if (PULSEAUDIO_pa_context_get_state(h->context) != PA_CONTEXT_READY ||
PULSEAUDIO_pa_stream_get_state(h->stream) != PA_STREAM_READY ||
PULSEAUDIO_pa_mainloop_iterate(h->mainloop, 1, NULL) < 0) {
--
Gitblit v1.9.3