surface: Amend timeout

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-04-20 11:14:51 +02:00
parent f42ead5a00
commit 70bbd56770
+1 -1
View File
@@ -186,8 +186,8 @@ VAStatus sunxi_cedrus_SyncSurface(VADriverContextP ctx,
FD_SET(request_fd, &read_fds); FD_SET(request_fd, &read_fds);
rc = select(request_fd + 1, &read_fds, NULL, NULL, NULL); rc = select(request_fd + 1, &read_fds, NULL, NULL, NULL);
// FIXME: Properly dispose of the buffers here?
if(rc <= 0) if(rc <= 0)
// FIXME: Properly dispose of the buffers here, also reinit request when it fails, also set surface status
return VA_STATUS_ERROR_UNKNOWN; return VA_STATUS_ERROR_UNKNOWN;
assert(ioctl(request_fd, MEDIA_REQUEST_IOC_REINIT, NULL)==0); assert(ioctl(request_fd, MEDIA_REQUEST_IOC_REINIT, NULL)==0);