Explorar o código

linux-capture: Retry capture if texture not created

This prevented OBS from re-aquiring capture when windows were minimized
or fullscreened.
Kurt Kartaltepe %!s(int64=3) %!d(string=hai) anos
pai
achega
e9076da901
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);