mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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:
parent
c148ecf2cb
commit
f72b3cf199
1 changed files with 2 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue