From b8f8d50f414ac5757215ca8bd26bafc667f86d00 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 2 Feb 2015 16:42:43 +0100 Subject: [PATCH] wayland: destroy vpp buffer pool on resize Otherwise the old buffers with the old size are used. https://bugzilla.gnome.org/show_bug.cgi?id=747491 --- gst-libs/gst/vaapi/gstvaapiwindow_wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c b/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c index 9846063..e28d06e 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c @@ -311,6 +311,7 @@ gst_vaapi_window_wayland_resize (GstVaapiWindow * window, GST_DEBUG ("resize window, new size %ux%u", width, height); + gst_vaapi_video_pool_replace (&priv->surface_pool, NULL); if (priv->opaque_region) wl_region_destroy (priv->opaque_region); GST_VAAPI_OBJECT_LOCK_DISPLAY (window); -- 2.7.4