From 70bbd56770e53e21ea76bc796e8568045accc534 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 20 Apr 2018 11:14:51 +0200 Subject: [PATCH] surface: Amend timeout Signed-off-by: Maxime Ripard --- src/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surface.c b/src/surface.c index 4333349..20cb51a 100644 --- a/src/surface.c +++ b/src/surface.c @@ -186,8 +186,8 @@ VAStatus sunxi_cedrus_SyncSurface(VADriverContextP ctx, FD_SET(request_fd, &read_fds); rc = select(request_fd + 1, &read_fds, NULL, NULL, NULL); - // FIXME: Properly dispose of the buffers here? 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; assert(ioctl(request_fd, MEDIA_REQUEST_IOC_REINIT, NULL)==0);