mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
gtkwaylandsink: Fix crash when rendering after the window is closed
Continuation of https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4197 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4232>
This commit is contained in:
parent
095356b67e
commit
1b926e0dcc
1 changed files with 3 additions and 0 deletions
|
@ -1075,6 +1075,9 @@ render_last_buffer (GstGtkWaylandSink * self, gboolean redraw)
|
||||||
struct wl_surface *surface;
|
struct wl_surface *surface;
|
||||||
struct wl_callback *callback;
|
struct wl_callback *callback;
|
||||||
|
|
||||||
|
if (!priv->wl_window)
|
||||||
|
return;
|
||||||
|
|
||||||
wlbuffer = gst_buffer_get_wl_buffer (priv->display, priv->last_buffer);
|
wlbuffer = gst_buffer_get_wl_buffer (priv->display, priv->last_buffer);
|
||||||
surface = gst_wl_window_get_wl_surface (priv->wl_window);
|
surface = gst_wl_window_get_wl_surface (priv->wl_window);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue