From d53c7f30fde17401402cdac430c936c4aa4c0110 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Wed, 21 Feb 2018 14:39:28 +0900 Subject: [PATCH] should init event_loop before vblank when initing event_loop, thread's find_funcs table is also inited. This should be done before initing others. Change-Id: Iae6c0e44b3f00c0b6a5aa77bbdbee158ce74baa0 --- src/tdm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tdm.c b/src/tdm.c index 7fabc4a..b0d1f40 100644 --- a/src/tdm.c +++ b/src/tdm.c @@ -963,10 +963,6 @@ tdm_display_init(tdm_error *error) TDM_DBG("prepare init time: %.3f ms", (stamp2 - stamp1) * 1000.0); stamp1 = stamp2; - ret = tdm_vblank_init(private_display); - if (ret != TDM_ERROR_NONE) - goto failed_vblank; - ret = tdm_event_loop_init(private_display); if (ret != TDM_ERROR_NONE) goto failed_event; @@ -975,6 +971,10 @@ tdm_display_init(tdm_error *error) TDM_INFO("event loop init time: %.3f ms", (stamp2 - stamp1) * 1000.0); stamp1 = stamp2; + ret = tdm_vblank_init(private_display); + if (ret != TDM_ERROR_NONE) + goto failed_vblank; + ret = tdm_output_init(private_display); if (ret != TDM_ERROR_NONE) goto failed_load; -- 2.7.4