Revert "glwindow: wayland: Skip redoing surfaces if window haven't changed"

This reverts commit aba6bd7822.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1231>
This commit is contained in:
Nicolas Dufresne 2021-07-23 13:39:34 -04:00
parent c148ecf2cb
commit f72b3cf199

View file

@ -614,11 +614,8 @@ gst_gl_window_wayland_egl_set_window_handle (GstGLWindow * window,
GstGLWindowWaylandEGL *window_egl = GST_GL_WINDOW_WAYLAND_EGL (window);
struct wl_surface *surface = (struct wl_surface *) handle;
/* Don't unparent if the window handle haven't changed or both were %NULL.
* We have to do that, since GstGLContextEGL will not recreate its
* EGLNativeWindowSurface, which will lead to crash with some Mesa driver
* version, or errors otherwise. */
if (window_egl->window.foreign_surface == surface)
/* already set the NULL handle */
if (surface == NULL && window_egl->window.foreign_surface == NULL)
return;
/* unparent */