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

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