[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 543376630e6b96e95e161a2fd0f54c80ebd67a1a..c2d8090ccdaa71f65aa5892cfb834e2b44e1f5d8 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 d77d6a3144aa8459bba1993df6ad7233003c084a..0204a2ceef5923e6ef29e31e799a3ce66ac182ea 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 edc70075e3642565b43dc74e5c0526b77cdc8ecb..4ea9fad9ec88286da298366230f5173f224850b8 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();