wlgrab: Fix ram (software encoding) snapshot

This commit is contained in:
David Rosca 2021-09-03 10:22:31 +02:00
commit 44ac873100
No known key found for this signature in database
GPG key ID: EBC3FC294452C6D8
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;
}