From d87cf9c7eb2eb5e63b1a3118b74261013ddd52fb Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 18 Feb 2024 00:11:11 +0100 Subject: [PATCH] win-capture: Disable audio source when game capture unhooks --- plugins/win-capture/game-capture.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/win-capture/game-capture.c b/plugins/win-capture/game-capture.c index 2015475b0..66cdef286 100644 --- a/plugins/win-capture/game-capture.c +++ b/plugins/win-capture/game-capture.c @@ -380,6 +380,10 @@ static void stop_capture(struct game_capture *gc) calldata_set_ptr(&data, "source", gc->source); signal_handler_signal(sh, "unhooked", &data); calldata_free(&data); + + // Also update audio source to stop capturing + if (gc->audio_source) + reconfigure_audio_source(gc->audio_source, NULL); } gc->copy_texture = NULL;