Browse Source

linux-capture: Retry capture if texture not created

This prevented OBS from re-aquiring capture when windows were minimized
or fullscreened.
Kurt Kartaltepe 3 years ago
parent
commit
e9076da901
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/linux-capture/xcomposite-input.c

+ 1 - 1
plugins/linux-capture/xcomposite-input.c

@@ -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);