From 44a92635a570962c343099b63e40ff9e0313c4fc Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Tue, 4 Dec 2018 09:57:35 +0900 Subject: Work Around : Avoid transmitter stop after a few tens of seconds Signed-off-by: Kazumasa Mitsunari --- waltham-transmitter/transmitter-plugin/output.c | 3 ++- waltham-transmitter/transmitter-plugin/plugin.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/waltham-transmitter/transmitter-plugin/output.c b/waltham-transmitter/transmitter-plugin/output.c index f5b1c21..4e2061a 100644 --- a/waltham-transmitter/transmitter-plugin/output.c +++ b/waltham-transmitter/transmitter-plugin/output.c @@ -193,7 +193,8 @@ transmitter_output_repaint(struct weston_output *base, output->renderer->dmafd = api->get_dma_fd_from_view(&output->base, view); - if(!output->renderer->dmafd) { + //if(!output->renderer->dmafd) { + if(output->renderer->dmafd <= 0) { weston_log("Failed to get dmafd\n"); goto out; } diff --git a/waltham-transmitter/transmitter-plugin/plugin.c b/waltham-transmitter/transmitter-plugin/plugin.c index 3a61011..699c17d 100644 --- a/waltham-transmitter/transmitter-plugin/plugin.c +++ b/waltham-transmitter/transmitter-plugin/plugin.c @@ -136,7 +136,7 @@ transmitter_surface_gather_state(struct weston_transmitter_surface *txs) data_sz = stride * height; /* fake sending buffer */ - txs->wthp_buf = wthp_blob_factory_create_buffer(remote->display->blob_factory, + /*txs->wthp_buf = wthp_blob_factory_create_buffer(remote->display->blob_factory, data_sz, data, surf->width, @@ -148,7 +148,7 @@ transmitter_surface_gather_state(struct weston_transmitter_surface *txs) wthp_surface_attach(txs->wthp_surf, txs->wthp_buf, txs->attach_dx, txs->attach_dy); wthp_surface_damage(txs->wthp_surf, txs->attach_dx, txs->attach_dy, surf->width, surf->height); - wthp_surface_commit(txs->wthp_surf); + wthp_surface_commit(txs->wthp_surf); */ wth_connection_flush(remote->display->connection); txs->attach_dx = 0; -- cgit 1.2.3-korg