win-capture: Disable audio source when game capture unhooks

This commit is contained in:
derrod
2024-02-18 00:11:11 +01:00
committed by Ryan Foster
parent 4f5d652712
commit d87cf9c7eb
+4
View File
@@ -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;