wayland: destroy vpp buffer pool on resize
authorMichael Olbrich <m.olbrich@pengutronix.de>
Mon, 2 Feb 2015 15:42:43 +0000 (16:42 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Apr 2015 09:39:58 +0000 (11:39 +0200)
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

index 9846063..e28d06e 100644 (file)
@@ -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);