e_comp_wl_video: revert version of tizen_video_interface from 2 to 1 76/148176/2
authorJunSeok, Kim <juns.kim@samsung.com>
Thu, 7 Sep 2017 10:15:29 +0000 (19:15 +0900)
committerJunSeok, Kim <juns.kim@samsung.com>
Thu, 7 Sep 2017 10:15:29 +0000 (19:15 +0900)
Tizen_video interface version is reverted from 2 to 1. So, changed
version of serverside implementation.

Change-Id: I832f2bf08bc24fcde6d01cf8511ee3c217a4a131

src/bin/e_comp_wl_video.c

index 1977701cf24cafce8387d879b0faa009bc4bb694..a40fdb9e24e6a96fd4d1161336d839badf7b5bc8 100644 (file)
@@ -2562,7 +2562,7 @@ _e_comp_wl_video_cb_bind(struct wl_client *client, void *data, uint32_t version,
    const tbm_format *formats = NULL;
    int i, count = 0;
 
-   if (!(res = wl_resource_create(client, &tizen_video_interface, MIN(version, 2), id)))
+   if (!(res = wl_resource_create(client, &tizen_video_interface, version, id)))
      {
         ERR("Could not create tizen_video_interface resource: %m");
         wl_client_post_no_memory(client);
@@ -2639,7 +2639,7 @@ e_comp_wl_video_init(void)
      }
 
    e_comp->wl_comp_data->video.global =
-      wl_global_create(e_comp_wl->wl.disp, &tizen_video_interface, 2, NULL, _e_comp_wl_video_cb_bind);
+      wl_global_create(e_comp_wl->wl.disp, &tizen_video_interface, 1, NULL, _e_comp_wl_video_cb_bind);
 
    /* try to add tizen_video to wayland globals */
    if (!e_comp->wl_comp_data->video.global)