Ver Fonte

linux-capture: Use xcb to check for extensions

Use the previously added helper function to check for needed extensions.
fryshorts há 10 anos atrás
pai
commit
008f4467f0
1 ficheiros alterados com 1 adições e 3 exclusões
  1. 1 3
      plugins/linux-capture/xshm-input.c

+ 1 - 3
plugins/linux-capture/xshm-input.c

@@ -205,10 +205,8 @@ static void xshm_capture_start(struct xshm_data *data)
 	XSetEventQueueOwner(data->dpy, XCBOwnsEventQueue);
 	data->xcb = XGetXCBConnection(data->dpy);
 
-	if (!XShmQueryExtension(data->dpy)) {
-		blog(LOG_ERROR, "XShm extension not found !");
+	if (!xshm_check_extensions(data->xcb))
 		goto fail;
-	}
 
 	data->use_xinerama = xinerama_is_active(data->dpy) ? true : false;