forked from marfrit/libva-v4l2-request-fourier
media: Adapt for the latest Request API
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
+3
-3
@@ -35,17 +35,17 @@
|
||||
|
||||
int media_request_alloc(int media_fd)
|
||||
{
|
||||
struct media_request_alloc request_alloc;
|
||||
int fd;
|
||||
int rc;
|
||||
|
||||
rc = ioctl(media_fd, MEDIA_IOC_REQUEST_ALLOC, &request_alloc);
|
||||
rc = ioctl(media_fd, MEDIA_IOC_REQUEST_ALLOC, &fd);
|
||||
if (rc < 0) {
|
||||
request_log("Unable to allocate media request: %s\n",
|
||||
strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
||||
return request_alloc.fd;
|
||||
return fd;
|
||||
}
|
||||
|
||||
int media_request_reinit(int request_fd)
|
||||
|
||||
Reference in New Issue
Block a user