linux-capture: Retry capture if texture not created
This prevented OBS from re-aquiring capture when windows were minimized or fullscreened.
This commit is contained in:
parent
c61d523d58
commit
e9076da901
@ -615,7 +615,7 @@ static void xcompcap_video_tick(void *data, float seconds)
|
||||
|
||||
// Reacquire window after interval or immediately if reconfigured.
|
||||
s->window_check_time += seconds;
|
||||
bool window_lost = !xcomp_window_exists(conn, s->win);
|
||||
bool window_lost = !xcomp_window_exists(conn, s->win) || !s->gltex;
|
||||
if ((window_lost && s->window_check_time > FIND_WINDOW_INTERVAL) ||
|
||||
s->window_changed) {
|
||||
watcher_unregister(conn, s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user