diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-12-04 09:57:35 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-12-04 09:57:35 +0900 |
commit | 44a92635a570962c343099b63e40ff9e0313c4fc (patch) | |
tree | 4716661ae6a18c5a18cf0386bbc23fa185151114 | |
parent | 6d9398489985bc5be9f509bbbe7aea9219d1cc48 (diff) |
Work Around : Avoid transmitter stop after a few tens of secondssandbox/knimitz/ces2019
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | waltham-transmitter/transmitter-plugin/output.c | 3 | ||||
-rw-r--r-- | 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; |