aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-05 12:53:33 +0100
committerSimon Ser <contact@emersion.fr>2021-11-08 15:57:19 +0000
commitf20c49d78a5406a0678e2f911f26965a479bf73f (patch)
tree260ae9368f1549874091b8e4f007fd00686de143
parente326b76959a4dfa1f41ba9548a81aac5df7730de (diff)
export-dmabuf-v1: stop using wlr_output_export_dmabuf
-rw-r--r--types/wlr_export_dmabuf_v1.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/types/wlr_export_dmabuf_v1.c b/types/wlr_export_dmabuf_v1.c
index c3108062..954a3270 100644
--- a/types/wlr_export_dmabuf_v1.c
+++ b/types/wlr_export_dmabuf_v1.c
@@ -66,7 +66,7 @@ static void frame_output_handle_commit(struct wl_listener *listener,
wl_list_init(&frame->output_commit.link);
struct wlr_dmabuf_attributes attribs = {0};
- if (!wlr_output_export_dmabuf(frame->output, &attribs)) {
+ if (!wlr_buffer_get_dmabuf(frame->output->front_buffer, &attribs)) {
zwlr_export_dmabuf_frame_v1_send_cancel(frame->resource,
ZWLR_EXPORT_DMABUF_FRAME_V1_CANCEL_REASON_TEMPORARY);
frame_destroy(frame);
@@ -86,8 +86,6 @@ static void frame_output_handle_commit(struct wl_listener *listener,
attribs.fd[i], size, attribs.offset[i], attribs.stride[i], i);
}
- wlr_dmabuf_attributes_finish(&attribs);
-
time_t tv_sec = event->when->tv_sec;
uint32_t tv_sec_hi = (sizeof(tv_sec) > 4) ? tv_sec >> 32 : 0;
uint32_t tv_sec_lo = tv_sec & 0xFFFFFFFF;