From 6fef11cae64c06c30ae55811e699e243ede1fbd1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 4 Dec 2010 00:23:59 -0500 Subject: [PATCH] Don't flag capture device as no-longer-started until we've stopped all i/o. Audio Hijack Pro (or maybe bad luck unrelated to it) appears to make the capture callback pump one more time here, so the callback's assertion that checks this flag needs it to remain sane. --- osx/alContext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osx/alContext.c b/osx/alContext.c index 769ef6a..6b8d614 100644 --- a/osx/alContext.c +++ b/osx/alContext.c @@ -644,8 +644,8 @@ ALCAPI ALvoid ALCAPIENTRY alcCaptureStop(ALCdevice *device) __alcSetError(dev, ALC_INVALID_DEVICE); else if (dev->capture.started) { - dev->capture.started = AL_FALSE; __alcStopCaptureIO(dev); + dev->capture.started = AL_FALSE; } // else if } // alcCaptureStart