mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
win-capture: Disable audio source when game capture unhooks
This commit is contained in:
parent
4f5d652712
commit
d87cf9c7eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user