From 63fc40525290bc7a15538d53bb9a239c6a2195d9 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Mon, 21 Dec 2015 19:27:44 +0900 Subject: [PATCH] Waylandsink : Apply tizen_policy_place_subsurface_below_parent() to area and video subsurface Change-Id: Ic2d6e9c30cdb9626e7a1377f84892a3c07a52146 Signed-off-by: Hyunil --- ext/wayland/wldisplay.c | 6 ++++++ ext/wayland/wlwindow.c | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 4b7916e..6187329 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -150,6 +150,12 @@ gst_wl_display_finalize (GObject * gobject) wl_display_flush (self->display); wl_display_disconnect (self->display); } +#ifdef GST_WLSINK_ENHANCEMENT + if (self->tizen_policy) + tizen_policy_destroy (self->tizen_policy); + if (self->tizen_video) + tizen_video_destroy (self->tizen_video); +#endif G_OBJECT_CLASS (gst_wl_display_parent_class)->finalize (gobject); } diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index 95817ac..aee0f32 100644 --- a/ext/wayland/wlwindow.c +++ b/ext/wayland/wlwindow.c @@ -248,15 +248,15 @@ gst_wl_window_new_in_surface (GstWlDisplay * display, #endif #ifdef GST_WLSINK_ENHANCEMENT - if (display->USE_TBM) { - /*Area surface from App need to be under parent surface */ - if (display->tizen_policy) - tizen_policy_place_subsurface_below_parent (display->tizen_policy, - window->area_subsurface); - wl_surface_commit (parent); + /*Area surface from App need to be under parent surface */ + if (display->tizen_policy) { + tizen_policy_place_subsurface_below_parent (display->tizen_policy, + window->area_subsurface); + tizen_policy_place_subsurface_below_parent (display->tizen_policy, + window->video_subsurface); } + wl_surface_commit (parent); #endif - return window; } -- 2.7.4