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

This commit is contained in:
emersion 2018-05-25 11:11:29 +01:00
parent 3f9796112e
commit 2432c41a49
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 1 deletions

View File

@ -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