mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
win-capture: Update hooked state before unhooked signal
If the get_hooked procedure is called during the unhooked signal the source would still report that it's hooked because gc->capturing hasn't been updated yet.
This commit is contained in:
parent
004253f296
commit
e17697f268
|
@ -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--;
|
||||
|
|
Loading…
Reference in a new issue