export-dmabuf: correctly send the number of planes per layer

master
emersion 7 years ago
parent 3f9796112e
commit 2432c41a49
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

@ -114,7 +114,7 @@ static void manager_handle_capture_output(struct wl_client *client,
attribs->flags, frame_flags, mod_high, mod_low, attribs->n_planes, 1);
zwlr_export_dmabuf_frame_v1_send_layer(frame->resource, 0,
attribs->format, 1);
attribs->format, attribs->n_planes);
for (int i = 0; i < attribs->n_planes; ++i) {
// TODO: what to do if the kernel doesn't support seek on buffer

Loading…
Cancel
Save