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
This commit is contained in:
Michael Olbrich 2015-02-02 16:42:43 +01:00 committed by Víctor Manuel Jáquez Leal
parent 3eb7986409
commit b8f8d50f41

View 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);