summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2019-11-25 19:08:48 +0800
committerTim-Philipp Müller <tim@centricular.com>2019-11-26 00:38:49 +0000
commit94a1e5a8c3e16ca17cc419ae1db8661b9b38de25 (patch)
tree488e0af7e7da70272b0f0ccda3c6d7daa6a07e7c
parent48db3053e52cbac0c67f10ee179015305dc78dbb (diff)
downloadgstreamer-plugins-bad-94a1e5a8c3e16ca17cc419ae1db8661b9b38de25.tar.gz
waylandsink: Commit the parent after creating subsurface
We should commit the parent to activate new subsurface, this is documented in the protocol. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
-rw-r--r--ext/wayland/wlwindow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c
index 9ebbcaf4b..3249d8ec6 100644
--- a/ext/wayland/wlwindow.c
+++ b/ext/wayland/wlwindow.c
@@ -344,6 +344,8 @@ gst_wl_window_new_in_surface (GstWlDisplay * display,
window->area_surface, parent);
wl_subsurface_set_desync (window->area_subsurface);
+ wl_surface_commit (parent);
+
return window;
}