diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-14 09:07:35 +0100 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-03-14 09:07:35 +0100 |
commit | 192e8d3a83eb7c4db4a089a2f63e9818a12e2c10 (patch) | |
tree | deda1b4aeaf180cc56d32fc73bb64d9c7b6edc85 | |
parent | f602f85a215b1c59c775f4b5ddb0669e48d01283 (diff) |
Only close unique fds on prime planes cleanup
-rw-r--r-- | encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -191,7 +191,7 @@ const struct GpuFrame* EncodeContextGetFrame( encode_context->gpu_frame = RELEASE(gpu_frame); release_planes: - for (size_t i = LENGTH(planes); i; i--) close(planes[i - 1].dmabuf_fd); + for (size_t i = prime.num_objects; i; i--) close(prime.objects[i - 1].fd); return encode_context->gpu_frame; } |