diff --git a/plugins/win-capture/game-capture.c b/plugins/win-capture/game-capture.c index 0c27047ffe50ac..ffee27b8d498ec 100644 --- a/plugins/win-capture/game-capture.c +++ b/plugins/win-capture/game-capture.c @@ -374,6 +374,8 @@ static void stop_capture(struct game_capture *gc) // if it was previously capturing, send an unhooked signal if (gc->capturing) { + gc->capturing = false; + signal_handler_t *sh = obs_source_get_signal_handler(gc->source); calldata_t data = {0}; @@ -389,7 +391,6 @@ static void stop_capture(struct game_capture *gc) gc->copy_texture = NULL; gc->wait_for_target_startup = false; gc->active = false; - gc->capturing = false; if (gc->retrying) gc->retrying--;