From df4eb8219cfcd8b74a14e3caabd56bf0f648faea Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Thu, 10 Dec 2020 19:45:31 +0900 Subject: [PATCH] libobs: fix the pending stop trick Regression introduced by dc4e20500: while the stop detection is pending, it should still return false so the rest of the discard code can run. Otherwise, the source audio will remain in the buffer, lagging the source and triggering audio buffering increases until max audio buffering is reached. --- libobs/obs-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-audio.c b/libobs/obs-audio.c index 7303df9f8..2f082a2db 100644 --- a/libobs/obs-audio.c +++ b/libobs/obs-audio.c @@ -116,7 +116,7 @@ static bool discard_if_stopped(obs_source_t *source, size_t channels) blog(LOG_DEBUG, "doing pending stop trick: '%s'", source->context.name); #endif - return true; + return false; } for (size_t ch = 0; ch < channels; ch++)