win-capture: Fix window capture stuck last frame
Fixes obsproject/obs-studio#2321
This commit is contained in:
parent
81c4750fbf
commit
0069562cca
@ -445,8 +445,11 @@ static void wc_tick(void *data, float seconds)
|
||||
return;
|
||||
|
||||
if (!wc->window || !IsWindow(wc->window)) {
|
||||
if (!wc->title && !wc->class)
|
||||
if (!wc->title && !wc->class) {
|
||||
if (wc->capture.valid)
|
||||
dc_capture_free(&wc->capture);
|
||||
return;
|
||||
}
|
||||
|
||||
wc->check_window_timer += seconds;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user