From 4e467e0082827d7f639df3c95e67e293d341f6a7 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 13 Nov 2019 12:05:52 +1100 Subject: [PATCH] vulkan/wayland: advertise the current surface size Avoids vkswapper from creating a 0x0 output VkSurface and failing --- gst-libs/gst/vulkan/wayland/gstvkwindow_wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/vulkan/wayland/gstvkwindow_wayland.c b/gst-libs/gst/vulkan/wayland/gstvkwindow_wayland.c index 15cf0c28a9..1bd17a3035 100644 --- a/gst-libs/gst/vulkan/wayland/gstvkwindow_wayland.c +++ b/gst-libs/gst/vulkan/wayland/gstvkwindow_wayland.c @@ -141,6 +141,9 @@ create_surfaces (GstVulkanWindowWayland * window_wl) else height = 240; window_wl->window_height = height; + + gst_vulkan_window_resize (GST_VULKAN_WINDOW (window_wl), + window_wl->window_width, window_wl->window_height); } static void