From 56e93fa6b3e2dc497211990ce14a3ed9c8215db8 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Tue, 27 Feb 2018 08:31:30 +0900 Subject: [PATCH] hwc: correct user_data Change-Id: I7a50f519834f455c975948feec27b6ae57d49f27 --- src/tdm_hwc_window.c | 2 +- src/tdm_output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tdm_hwc_window.c b/src/tdm_hwc_window.c index ea59e9b..362c798 100644 --- a/src/tdm_hwc_window.c +++ b/src/tdm_hwc_window.c @@ -523,7 +523,7 @@ tdm_hwc_window_commit(tdm_hwc_window *hwc_window, tdm_hwc_window_commit_handler hwc_window_commit_handler->func = func; hwc_window_commit_handler->user_data = user_data; - ret = tdm_layer_commit_internal(private_layer, _tdm_hwc_window_layer_commit_handler, user_data); + ret = tdm_layer_commit_internal(private_layer, _tdm_hwc_window_layer_commit_handler, hwc_window_commit_handler); if (ret != TDM_ERROR_NONE) { /* LCOV_EXCL_START */ TDM_ERR("failed: commit layer(window)"); diff --git a/src/tdm_output.c b/src/tdm_output.c index 2e3cfce..3d096d9 100644 --- a/src/tdm_output.c +++ b/src/tdm_output.c @@ -1979,7 +1979,7 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta output_hwc_target_buffer_commit_handler->func = func; output_hwc_target_buffer_commit_handler->user_data = user_data; - ret = tdm_layer_commit_internal(private_layer, _tdm_output_hwc_layer_commit_handler, user_data); + ret = tdm_layer_commit_internal(private_layer, _tdm_output_hwc_layer_commit_handler, output_hwc_target_buffer_commit_handler); if (ret != TDM_ERROR_NONE) { /* LCOV_EXCL_START */ TDM_ERR("failed: commit layer(target buffer)"); -- 2.7.4