Fix bad file descriptor when using wlgrab

This commit is contained in:
Loki
2021-09-05 11:16:59 +02:00
parent 7fbe9ba34f
commit b072af3082
3 changed files with 5 additions and 15 deletions

View File

@@ -260,10 +260,10 @@ public:
++sequence;
img->sequence = sequence;
img->sd = current_frame->sd;
img->sd = current_frame->sd;
// Prevent dmabuf from closing the file descriptors.
current_frame->close_fds = false;
current_frame->sd.obj_count = 0;
return platf::capture_e::ok;
}