From: Boram Park Date: Sun, 11 Jun 2017 00:09:54 +0000 (+0900) Subject: video: not create a video global object if exists X-Git-Tag: submit/tizen/20170613.064539~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F133628%2F1;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-devicemgr.git video: not create a video global object if exists Change-Id: I703499549036e1926ddc53ab62c1a6bca7a80fe0 --- diff --git a/src/e_devicemgr_video.c b/src/e_devicemgr_video.c index 8e8bff6..4459e7c 100755 --- a/src/e_devicemgr_video.c +++ b/src/e_devicemgr_video.c @@ -2545,6 +2545,7 @@ e_devicemgr_video_init(void) { if (!e_comp_wl) return 0; if (!e_comp_wl->wl.disp) return 0; + if (e_comp->wl_comp_data->video.global) return 1; e_info_server_hook_set("mbuf", _e_devicemgr_mbuf_print, NULL); e_info_server_hook_set("video-dst-change", _e_devicemgr_video_dst_change, NULL); @@ -2558,10 +2559,11 @@ e_devicemgr_video_init(void) return 0; } + e_comp->wl_comp_data->video.global = + wl_global_create(e_comp_wl->wl.disp, &tizen_video_interface, 1, NULL, _e_devicemgr_video_cb_bind); /* try to add tizen_video to wayland globals */ - if (!wl_global_create(e_comp_wl->wl.disp, &tizen_video_interface, 1, - NULL, _e_devicemgr_video_cb_bind)) + if (!e_comp->wl_comp_data->video.global) { ERR("Could not add tizen_video to wayland globals"); return 0;