wlgrab: Fix ram (software encoding) snapshot

This commit is contained in:
David Rosca
2021-09-03 10:22:31 +02:00
parent 3d179a869a
commit 44ac873100
3 changed files with 18 additions and 12 deletions

View File

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