summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2016-03-29 11:04:35 +0900
committerChangyeon Lee <cyeon.lee@samsung.com>2016-04-11 11:09:20 +0900
commit4d098d19f966d15e7f01f17e608fb0104fb8e6e1 (patch)
tree05578af0f1214225c523383a09aa64c3ae8e1d94
parent634a6900b971a09347ff36b684be8e91d5df1116 (diff)
downloadlibtbm-4d098d19f966d15e7f01f17e608fb0104fb8e6e1.tar.gz
libtbm-4d098d19f966d15e7f01f17e608fb0104fb8e6e1.tar.bz2
libtbm-4d098d19f966d15e7f01f17e608fb0104fb8e6e1.zip
Change-Id: I2f06e3f71edfaa8a835a7e7416c11b727fc50961 Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
-rw-r--r--src/tbm_drm_helper_client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tbm_drm_helper_client.c b/src/tbm_drm_helper_client.c
index 6248b6a..7bc0eea 100644
--- a/src/tbm_drm_helper_client.c
+++ b/src/tbm_drm_helper_client.c
@@ -117,8 +117,6 @@ tbm_drm_helper_get_auth_info(int *auth_fd, char **device, uint32_t *capabilities
wl_registry_add_listener(wl_registry, &registry_listener, tbm_drm_client);
wl_display_roundtrip(display); //For Gloabl registry
- wl_tbm_drm_auth_get_authentication_info(tbm_drm_client->wl_tbm_drm_auth);
- wl_display_roundtrip(display);
if (!tbm_drm_client->wl_tbm_drm_auth) {
TBM_LOG("Failed to get wl_tbm_drm_auth interface\n");
@@ -129,6 +127,9 @@ tbm_drm_helper_get_auth_info(int *auth_fd, char **device, uint32_t *capabilities
return 0;
}
+ wl_tbm_drm_auth_get_authentication_info(tbm_drm_client->wl_tbm_drm_auth);
+ wl_display_roundtrip(display);
+
if (tbm_drm_client->auth_fd < 0) {
TBM_LOG("Failed to get auth info\n");
wl_tbm_drm_auth_set_user_data(tbm_drm_client->wl_tbm_drm_auth, NULL);