diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index 3e24a031..2a7f938d 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -1705,6 +1705,9 @@ client_capture_output(struct client *client, client_roundtrip(client); + assert(capt.width != 0 && capt.height != 0 && capt.drm_format != 0 && + "capture source not available"); + buf = create_shm_buffer(client, capt.width, capt.height, capt.drm_format);