[0.3.147] Use ecore_evas_wayland2_window_get() instead of elm_win_wl_window_get() 28/263428/6
authorHyunil <hyunil46.park@samsung.com>
Thu, 2 Sep 2021 06:27:52 +0000 (15:27 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 13 Sep 2021 03:30:29 +0000 (12:30 +0900)
- elm_win_wl_window_get() is not managed API.
- ecore_evas_ecore_evas_get(evas_object_evas_get(win_id)) and ecore_evas_wayland2_window_get() are used to get Ecore_wl2_window.

Change-Id: I2ca8364c530f99da1ba7b09649422908f0220472
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/capi-media-player.spec
test/player_test.c

index db3e0a6..86e3834 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.146
+Version:    0.3.147
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index f171622..8356b66 100644 (file)
@@ -25,6 +25,7 @@
 #include <Elementary.h>
 #include <Ecore.h>
 #include <Ecore_Wayland2.h>
+#include <Ecore_Evas.h>
 #include <stdio.h>
 #include <string.h>
 #ifdef _ACTIVATE_EOM_
@@ -1829,7 +1830,8 @@ static void change_surface(int option)
        case 3:
                g_print("change surface type to OVERLAY_SYNC_UI\n");
                surface_type = g_current_surface_type = PLAYER_DISPLAY_TYPE_OVERLAY_SYNC_UI;
-               Ecore_Wl2_Window *ecore_wl2_win = (Ecore_Wl2_Window *)elm_win_wl_window_get(g_win_id);
+               Ecore_Evas *eore_evas = ecore_evas_ecore_evas_get(evas_object_evas_get(g_win_id));
+               Ecore_Wl2_Window *ecore_wl2_win = ecore_evas_wayland2_window_get(eore_evas);
                Ecore_Wl2_Subsurface *ecore_wl2_subsurface = ecore_wl2_subsurface_new(ecore_wl2_win);
                g_ecore_wl2_window = ecore_wl2_win;