From: Hyunil Date: Wed, 6 Sep 2017 05:52:55 +0000 (+0900) Subject: [0.3.68] Apply ecore_wl_window_video_has() to let wayland-server know that video... X-Git-Tag: accepted/tizen/4.0/unified/20170907.193701^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F147950%2F1;p=platform%2Fcore%2Fapi%2Fplayer.git [0.3.68] Apply ecore_wl_window_video_has() to let wayland-server know that video is rendered in wl_window Change-Id: I432b25119ace9b92599499d288b42fd1cc363047 Signed-off-by: Hyunil --- diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index 5433766..c2d8090 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -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 diff --git a/src/player.c b/src/player.c index d77d6a3..0204a2c 100644 --- a/src/player.c +++ b/src/player.c @@ -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); diff --git a/src/player_internal.c b/src/player_internal.c index edc7007..4ea9fad 100644 --- a/src/player_internal.c +++ b/src/player_internal.c @@ -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();