summaryrefslogtreecommitdiff
path: root/ext/wayland/wlwindow.c
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-02-28 11:48:30 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-06-17 13:51:24 +0200
commite56f305274520e856044bf629886073bea21294e (patch)
treee61373c972794293f072edb18cdb4b6bf9a0944f /ext/wayland/wlwindow.c
parent68133361eca5f03a85e8f9b168b2aa8026161ebf (diff)
downloadgstreamer-plugins-bad-e56f305274520e856044bf629886073bea21294e.tar.gz
waylandsink: implement the GstVideoOverlay & GstWaylandVideo interfaces
This is the initial implementation, without the GstVideoOverlay.expose() method. It only implements using an external (sub)surface and resizing it with GstWaylandVideo.
Diffstat (limited to 'ext/wayland/wlwindow.c')
-rw-r--r--ext/wayland/wlwindow.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c
index c6d3addb1..f1d103a65 100644
--- a/ext/wayland/wlwindow.c
+++ b/ext/wayland/wlwindow.c
@@ -152,6 +152,14 @@ gst_wl_window_get_wl_surface (GstWlWindow * window)
return window->surface;
}
+gboolean
+gst_wl_window_is_toplevel (GstWlWindow * window)
+{
+ g_return_val_if_fail (window != NULL, FALSE);
+
+ return (window->shell_surface != NULL);
+}
+
void
gst_wl_window_get_size (GstWlWindow * window, gint * w, gint * h)
{