Refactor egl::surface_descriptor_t, removed obj_count and plane_indices

This commit is contained in:
Loki
2021-09-06 19:46:42 +02:00
parent 9dbf0df67d
commit 10ca72f934
7 changed files with 54 additions and 48 deletions

View File

@@ -263,7 +263,7 @@ public:
img->sd = current_frame->sd;
// Prevent dmabuf from closing the file descriptors.
current_frame->sd.obj_count = 0;
std::fill_n(current_frame->sd.fds, 4, -1);
return platf::capture_e::ok;
}
@@ -275,6 +275,9 @@ public:
img->serial = std::numeric_limits<decltype(img->serial)>::max();
img->data = nullptr;
// File descriptors aren't open
std::fill_n(img->sd.fds, 4, -1);
return img;
}