[0.3.68] Apply ecore_wl_window_video_has() to let wayland-server know that video... 50/147950/1 accepted/tizen/4.0/unified/20170907.193701 submit/tizen_4.0/20170906.061634
authorHyunil <hyunil46.park@samsung.com>
Wed, 6 Sep 2017 05:52:55 +0000 (14:52 +0900)
committerHyunil <hyunil46.park@samsung.com>
Wed, 6 Sep 2017 06:12:46 +0000 (15:12 +0900)
Change-Id: I432b25119ace9b92599499d288b42fd1cc363047
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/capi-media-player.spec
src/player.c
src/player_internal.c

index 5433766..c2d8090 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.67
+Version:    0.3.68
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index d77d6a3..0204a2c 100644 (file)
@@ -2644,6 +2644,10 @@ int player_set_display(player_h player, player_display_type_e type, player_displ
                                wl_window = elm_win_wl_window_get(obj);
                                return_val_if_fail(wl_window != NULL, PLAYER_ERROR_INVALID_OPERATION);
 
+                               /* Need to let wayland-server know that video is rendered in this wl_window
+                                so that wayland-server sets alpha in this wl_window */
+                               ecore_wl_window_video_has(wl_window, EINA_TRUE);
+
                                wl_surface = (struct wl_surface *)ecore_wl_window_surface_get(wl_window);
                                return_val_if_fail(wl_surface != NULL, PLAYER_ERROR_INVALID_OPERATION);
 
index edc7007..4ea9fad 100644 (file)
@@ -222,6 +222,10 @@ int player_set_ecore_wl_display(player_h player, player_display_type_e type, Eco
        wl_win.wl_window_width = width;
        wl_win.wl_window_height = height;
 
+       /* Need to let wayland-server know that video is rendered in this wl_window
+        so that wayland-server sets alpha in this wl_window */
+       ecore_wl_window_video_has(wl_window, EINA_TRUE);
+
        wl_surface = (struct wl_surface *)ecore_wl_window_surface_get(wl_window);
        /* get wl_display */
        wl_display = (struct wl_display *)ecore_wl_display_get();