From 37b083ebcd5338ff145fb487744b152bb2383011 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 20 Apr 2018 11:09:30 +0200 Subject: [PATCH] surface: Don't timeout on select anymore Signed-off-by: Maxime Ripard --- src/surface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/surface.c b/src/surface.c index d3e1b9a..f0239cd 100644 --- a/src/surface.c +++ b/src/surface.c @@ -164,7 +164,6 @@ VAStatus sunxi_cedrus_SyncSurface(VADriverContextP ctx, struct v4l2_plane plane[1]; struct v4l2_plane planes[2]; fd_set read_fds; - struct timeval tv = {0, 300000}; int request_fd; int rc; @@ -186,7 +185,7 @@ VAStatus sunxi_cedrus_SyncSurface(VADriverContextP ctx, FD_ZERO(&read_fds); FD_SET(request_fd, &read_fds); - rc = select(request_fd + 1, &read_fds, NULL, NULL, &tv); + rc = select(request_fd + 1, &read_fds, NULL, NULL, NULL); // FIXME: Properly dispose of the buffers here? if(rc < 0) return VA_STATUS_ERROR_UNKNOWN;